NBT names are case sensative

This commit is contained in:
Progwml6 committed 2013-11-10 18:37:53 -05:00
1 parent 4eb9289296
commit 2c96a62081
1 file changed
+4 -4
+4 -4
View File
@@ -811,9 +811,9 @@ public abstract class ToolCore extends Item implements IEnergyContainerItem, ICu
if (charge > 0)
return this.getMaxCharge(stack);
}
if (tags.hasKey("energy"))
if (tags.hasKey("Energy"))
{
int energy = tags.getInteger("energy");
int energy = tags.getInteger("Energy");
if (energy > 0)
return this.getMaxEnergyStored(stack);
}
@@ -834,9 +834,9 @@ public abstract class ToolCore extends Item implements IEnergyContainerItem, ICu
if (charge > 0)
return getMaxCharge(stack) - charge;
}
if (tags.hasKey("energy"))
if (tags.hasKey("Energy"))
{
int energy = tags.getInteger("energy");
int energy = tags.getInteger("Energy");
if (energy > 0)
return getMaxEnergyStored(stack) - energy;
}