Skip to content

Commit

Permalink
fix classcastexception on legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Nov 19, 2023
1 parent c2e1de6 commit afffdde
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}
Expand Down

0 comments on commit afffdde

Please sign in to comment.