mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 13:15:28 +01:00
Fix test for InventoryListener
This commit is contained in:
parent
ce4b124279
commit
3d1481fec5
@ -76,7 +76,7 @@ public class InventoryListener extends FlagListener {
|
||||
// To differentiate between a Chest and a Trapped Chest we need to get the Block corresponding to the inventory
|
||||
Chest chestInventoryHolder = (Chest) inventoryHolder;
|
||||
try {
|
||||
if (chestInventoryHolder.getBlock().getType() == Material.TRAPPED_CHEST) {
|
||||
if (chestInventoryHolder.getType() == Material.TRAPPED_CHEST) {
|
||||
checkIsland(e, player, e.getInventory().getLocation(), Flags.TRAPPED_CHEST);
|
||||
} else {
|
||||
checkIsland(e, player, e.getInventory().getLocation(), Flags.CHEST);
|
||||
|
Loading…
Reference in New Issue
Block a user