From afffdded08a1a00eb9d474ff453ff0305cc41400 Mon Sep 17 00:00:00 2001 From: xGinko Date: Sun, 19 Nov 2023 15:22:11 +0100 Subject: [PATCH] fix classcastexception on legacy --- .../me/moomoo/anarchyexploitfixes/modules/patches/BookBan.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } } }