File Details
manatweaks-1.2.jar
- R
- Dec 17, 2018
- 6.75 KB
- 162
- 1.12.2
File Name
manatweaks-1.2.jar
Supported Versions
- 1.12.2
- Moved manaRepairSlot method from IPlayer to IEntity
- As was already the case, all methods fail (gracefully) if the underlying entity is not an EntityPlayer
- IEntity is supported this way because a number of relevant events (e.g. the onUpdate function for a Construct's Armory trait) supply player objects as IEntity or IEntityLivingBase, and ZenScript is pickier about casting than Java
- Added an extra manaRepairSlot method that uses int instead of IEntityEquipmentSlot to identify slots
- Added all manaRepairEntitySlot and manaRepairStack methods to the main ManaHandler class, rather than requiring use of the ZenExtensions for those (they're still available on IEntity and IItemStack instances respectively)
- Doubled default mana repair costs, to better match Botania's behaviour
- Botania uses costs of 60 (tools) and 70 (armour) to cancel item durability damage, but costs of 120 (tools) and 140 (armour) to regenerate durability
- Internal tweaks

