mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-17 22:57:52 +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
|
// To differentiate between a Chest and a Trapped Chest we need to get the Block corresponding to the inventory
|
||||||
Chest chestInventoryHolder = (Chest) inventoryHolder;
|
Chest chestInventoryHolder = (Chest) inventoryHolder;
|
||||||
try {
|
try {
|
||||||
if (chestInventoryHolder.getBlock().getType() == Material.TRAPPED_CHEST) {
|
if (chestInventoryHolder.getType() == Material.TRAPPED_CHEST) {
|
||||||
checkIsland(e, player, e.getInventory().getLocation(), Flags.TRAPPED_CHEST);
|
checkIsland(e, player, e.getInventory().getLocation(), Flags.TRAPPED_CHEST);
|
||||||
} else {
|
} else {
|
||||||
checkIsland(e, player, e.getInventory().getLocation(), Flags.CHEST);
|
checkIsland(e, player, e.getInventory().getLocation(), Flags.CHEST);
|
||||||
|
Loading…
Reference in New Issue
Block a user