1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

cursor.getType() == null check

This commit is contained in:
iTwins 2023-09-03 14:27:28 +02:00
parent 6f194a6249
commit c06e316b6a

View File

@ -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;
}
});
}