Skip to content

Commit

Permalink
Fix that Double Chests weren't supported in some cases (Fixes #568)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenix616 committed Sep 28, 2023
1 parent a413e86 commit 53aa75d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/Acrobot/ChestShop/Utils/uBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ public static boolean couldBeShopContainer(Block block) {
}

public static boolean couldBeShopContainer(InventoryHolder holder) {
return holder instanceof Container && couldBeShopContainer(((Container) holder).getBlock());
return (holder instanceof Container && couldBeShopContainer(((Container) holder).getBlock()))
|| (holder instanceof DoubleChest && couldBeShopContainer(((DoubleChest) holder).getLeftSide()));
}
}

0 comments on commit 53aa75d

Please sign in to comment.