Skip to content

Commit

Permalink
fixed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
NonSwag committed Jun 22, 2024
1 parent d75981c commit 86f184d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void menuClick(InventoryClickEvent event) {
plugin.brushController().parseBrushSettings(event.getCursor())
.ifPresentOrElse(settings::importSettings, () -> {
if (itemType.equals(plugin.config().brushConfig().defaultBrushType())) return;
if (itemType.isItem()) settings.exportSettings(event.getCursor());
if (!itemType.isBlock()) settings.exportSettings(event.getCursor());
});

} else if (event.getRawSlot() == 11 || event.getRawSlot() == 2 || event.getRawSlot() == 20) {
Expand Down

0 comments on commit 86f184d

Please sign in to comment.