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

Chest rollbacks not working #105

Open
oliverwoodings opened this issue Aug 21, 2011 · 3 comments
Open

Chest rollbacks not working #105

oliverwoodings opened this issue Aug 21, 2011 · 3 comments
Milestone

Comments

@oliverwoodings
Copy link
Owner

Check it

@ahornerr
Copy link

I know this is an old issue, but the problem still exists.

@Zren
Copy link

Zren commented Jun 16, 2012

Found the reason for the bug.
You're using:

if (!(block instanceof InventoryHolder)) return false;

instead of:

if (!(block.getState() instanceof InventoryHolder)) return false;

https://github.com/Zren/HawkEye/blob/master/src/main/java/uk/co/oliwali/HawkEye/entry/ContainerEntry.java#L40

Zren added a commit to Zren/HawkEye that referenced this issue Jun 16, 2012
…ing back.

There are no implementation of a Block/InventoryHolder mix. You need to call block.getState() in order to get an object that impements it.
@Zren
Copy link

Zren commented Jun 19, 2012

I've also noticed that any item with a data/damage value will not revert. Which probably means a custom inv.addItem() / .remItem().

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

No branches or pull requests

3 participants