From c06e316b6abe22991c84af60df2b2bd91d108b44 Mon Sep 17 00:00:00 2001 From: iTwins Date: Sun, 3 Sep 2023 14:27:28 +0200 Subject: [PATCH] cursor.getType() == null check --- .../slimefun4/implementation/items/geo/GEOMiner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/geo/GEOMiner.java b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/geo/GEOMiner.java index 06f41a17a..951f56ac4 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/geo/GEOMiner.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/items/geo/GEOMiner.java @@ -270,7 +270,7 @@ public class GEOMiner extends SlimefunItem implements RecipeDisplayItem, EnergyN @Override public boolean onClick(InventoryClickEvent e, Player p, int slot, ItemStack cursor, ClickAction action) { - return cursor == null || cursor.getType() == Material.AIR; + return cursor == null || cursor.getType() == null || cursor.getType() == Material.AIR; } }); }