Various fixes involving projectiles and tool speed

This commit is contained in:
mDiyo committed 2013-08-27 18:11:13 -07:00
1 parent 0f069787c4
commit 2db4ccd4c7
14 files changed
+138 -99

No files matched your search

+1 -1
View File
@@ -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)