Fix that Double Chests weren't supported in some cases (Fixes #568)

This commit is contained in:
Phoenix616 2023-09-28 17:26:37 +01:00
parent a413e86ccf
commit 53aa75d9b4
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
1 changed files with 2 additions and 1 deletions

View File

@ -317,6 +317,7 @@ public class uBlock {
}
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()));
}
}