Skip to content

Fixes #847#976

Merged
mastercoms merged 3 commits intoGlowstoneMC:devfrom
j1o1h1n:boat_dup
Nov 17, 2018
Merged

Fixes #847#976
mastercoms merged 3 commits intoGlowstoneMC:devfrom
j1o1h1n:boat_dup

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.

3 participants