mze9412/MinecartMania — pull request #2 by leagris (2012-09-03 09:18:13+00:00)
Title: fix loss of durability in double chest

addItem and removeItem exposes inconsistent interfaces. one use itemstack, one use int.
By the way, here is an easy quick fix for removeItem until the interface inconsistency can be sorted out.

removeItem was not passing durability to double chest neighbour causing
the new decreased stack to get updated with durability -1.
While depositing a double chest:
- Charcoal dura 1 would become coal dura -1 and would not allow use in torch crafting
- Spuce log dura 0 would become spuce log -1 and would not stack or craft planks
...
Got me some headaches and long nights analyzing out this little annoying flaw.
Fix already submitted to afforess in 2011 but it was lost in abandonment.
I guess you will make a better use of it now.
Thank you for the reborn of mm.