diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/BookBan.java b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/BookBan.java index 1e346d9a7..f0f418fc1 100644 --- a/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/BookBan.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/moomoo/anarchyexploitfixes/modules/patches/BookBan.java @@ -58,7 +58,7 @@ private long getItemSize(ItemStack stack) { if (itemMeta instanceof BlockStateMeta) { final BlockStateMeta blockStateMeta = (BlockStateMeta) itemMeta; if (blockStateMeta.getBlockState() instanceof ShulkerBox) { - byteSize += getInventorySize(((ShulkerBox) blockStateMeta).getInventory().getContents()); + byteSize += getInventorySize(((ShulkerBox) blockStateMeta.getBlockState()).getInventory().getContents()); } } }