Closed jwebbdev closed 12 years ago
I noticed this myself actually... didn't get around to pushing it though. Thanks for the request. I think durability is the same as MaterialData.get/setData though... can you change that before I merge?
If you mean like the 4th (data) field in ItemStack's constructor, it's different (and the reason there was the problem). For a healing potion (373:8179) you end up with 373 as the ID, 8179 as the durability and 5 as the data. (So the save writes out 373/1/8179/5 where as previously without durability added in it would write out 373/1/5, losing the 8179).
... identifying potions on Traders)
Fix for: https://github.com/CitizensDev/Citizens/issues/972 https://github.com/CitizensDev/Citizens/issues/769 https://github.com/CitizensDev/Citizens/issues/518