Change the damage display stuff to use NBT instead of the internal damage stuff, so we can make setItemDamage compatible with the NBT durability we use.

This commit is contained in:
Bernhard Bonigl committed 2014-09-20 14:09:59 +02:00
1 parent 61e2f1a0c3
commit 25261243b0
3 files changed
+33 -13

No files matched your search

@@ -140,6 +140,6 @@ public class ModFlux extends ModBoolean
tags.setInteger(key, 1);
ToolCore toolcore = (ToolCore) tool.getItem();
tool.setItemDamage(1 + (toolcore.getMaxEnergyStored(tool) - charge) * (tool.getMaxDamage() - 1) / toolcore.getMaxEnergyStored(tool));
//tool.setItemDamage(1 + (toolcore.getMaxEnergyStored(tool) - charge) * (tool.getMaxDamage() - 1) / toolcore.getMaxEnergyStored(tool));
}
}