Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #847 #976

Merged
merged 3 commits into from Nov 17, 2018
Merged

Fixes #847 #976

merged 3 commits into from Nov 17, 2018

Conversation

j1o1h1n
Copy link
Contributor

@j1o1h1n j1o1h1n commented Nov 13, 2018

This fix builds on the earlier work by Pr0methean [fb5cc7b]. The issue was that UseItemHandler restored the original item into the inventory. I guess this was done in order to delete items when they are consumed.

I made a similar fix to BlockPlacementHandler.


@Before
public void setupMocks() {
// cache the event factory
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure some of this is redundant to the superclass's @Before method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing that out. I tried to use the serverShim but was unable to, it mocks World and the test I wrote needs GlowWorld.

I have removed the unused superclass.

@mastercoms mastercoms merged commit afcfe1c into GlowstoneMC:dev Nov 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants