This commit is contained in:
Grooble 2023-07-19 16:12:17 +02:00 committed by GitHub
parent 6f476b7826
commit d121c0d9cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ public class GringottsAccount {
public long addToShulkerBox(long remaining, Inventory inventory) {
for (ItemStack itemStack : inventory.getContents()) {
if (Tag.SHULKER_BOXES.isTagged(itemStack.getType()) && itemStack.getItemMeta() instanceof BlockStateMeta) {
if (itemStack != null && Tag.SHULKER_BOXES.isTagged(itemStack.getType()) && itemStack.getItemMeta() instanceof BlockStateMeta) {
BlockStateMeta blockState = (BlockStateMeta) itemStack.getItemMeta();
if (blockState.getBlockState() instanceof ShulkerBox) {
ShulkerBox shulkerBox = (ShulkerBox) blockState.getBlockState();