mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-27 15:33:03 +00:00
NBT names are case sensative
This commit is contained in:
1 parent
4eb9289296
commit
2c96a62081
1 file changed
+4
-4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user