HawkEye

HawkEye

192k Downloads

Chest rollbacks not working

oliverwoodings opened this issue ยท 3 comments

commented

Check it

commented

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

commented

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

commented

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