mirror of
https://github.com/GTNewHorizons/EnderCore.git
synced 2026-11-12 00:07:38 +00:00
Merge remote-tracking branch 'DrParadox7/GTPR' into dev
This commit is contained in:
1 file changed
+1
-1
@@ -40,7 +40,7 @@ public class ToolUtil {
|
||||
public static void damageDurability(ItemStack tool, int cropsHarvested, EntityPlayer player) {
|
||||
if (ToolUtil.usesEnergy(tool, cropsHarvested)) return;
|
||||
|
||||
if (tool.getItem() instanceof ItemTool) tool.damageItem(cropsHarvested, player);
|
||||
if (tool != null && tool.getItem() instanceof ItemTool) tool.damageItem(cropsHarvested, player);
|
||||
}
|
||||
|
||||
public static boolean canDoEnergyOperations(ItemStack stack) {
|
||||
|
||||
Reference in new issue
Block a user