mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Fix various issues
This commit is contained in:
35 files changed
+236
-243
No files matched your search
@@ -325,7 +325,7 @@ public interface HuskHomes extends TaskRunner, EventDispatcher {
|
||||
|
||||
default <T extends Command> Optional<T> getCommand(@NotNull Class<T> type) {
|
||||
return getCommands().stream()
|
||||
.filter(command -> command.getClass().isInstance(type))
|
||||
.filter(command -> command.getClass() == type)
|
||||
.findFirst()
|
||||
.map(type::cast);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user