mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 06:52:58 +00:00
Various fixes involving projectiles and tool speed
This commit is contained in:
1 parent
0f069787c4
commit
2db4ccd4c7
14 files changed
+138
-99
No files matched your search
@@ -820,7 +820,7 @@ public abstract class ToolCore extends Item implements ICustomElectricItem, IBox
|
||||
public int discharge (ItemStack stack, int amount, int tier, boolean ignoreTransferLimit, boolean simulate)
|
||||
{
|
||||
NBTTagCompound tags = stack.getTagCompound();
|
||||
if (!tags.hasKey("charge"))
|
||||
if (tags == null || !tags.hasKey("charge"))
|
||||
return 0;
|
||||
|
||||
if (amount > 0)
|
||||
|
||||
Reference in new issue
Block a user