Fix various issues

This commit is contained in:
William committed 2023-03-20 23:23:06 +00:00
1 parent 503898a0ef
commit 054811676d
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);
}