Skip to content
This repository has been archived by the owner on Aug 31, 2019. It is now read-only.

Fix addItem method in CraftInventory #239

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cswhite2000
Copy link

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.

@Pablete1234
Copy link
Member

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

@cswhite2000 cswhite2000 force-pushed the master branch 2 times, most recently from 776680e to dad6b95 Compare May 3, 2017 22:39
@cswhite2000
Copy link
Author

I moved the fix to the Reduce-ItemStack-copying patch

@Pablete1234
Copy link
Member

Did you run this thru the scripts? shouldn't it also edit the CB snapshot?

@cswhite2000
Copy link
Author

I guess I forgot to run rake snapshot. It should be fixed now.

@cswhite2000
Copy link
Author

And yes, I did run it through the scripts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants