SportBukkit
SportBukkit copied to clipboard
Fix addItem method in CraftInventory
In the CraftInventory class the firstEmpty method, called by addItem, wasn't working correctly. This caused the addItem method to only add items to stacks that already had the item. This fixes //wand not working in worldedit and /give not working in commandbook.
You should take a look at https://github.com/OvercastNetwork/SportBukkit/blob/master/CraftBukkit/Reduce-ItemStack-copying.patch#L258 ,we don't want a new patch to fix an older one, just edit the older one instead
I moved the fix to the Reduce-ItemStack-copying patch
Did you run this thru the scripts? shouldn't it also edit the CB snapshot?
I guess I forgot to run rake snapshot. It should be fixed now.
And yes, I did run it through the scripts.