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:
parent
6f194a6249
commit
c06e316b6a
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user