From a540f04ded6cc8ee7b143294a1c82c99c2101d4c Mon Sep 17 00:00:00 2001 From: Brianna Date: Mon, 30 Nov 2020 14:28:04 -0600 Subject: [PATCH] Fixed an issue affecting materials in 1.12. --- .../com/songoda/ultimatestacker/listeners/BlockListeners.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/songoda/ultimatestacker/listeners/BlockListeners.java b/src/main/java/com/songoda/ultimatestacker/listeners/BlockListeners.java index f23c565..a8ce55d 100644 --- a/src/main/java/com/songoda/ultimatestacker/listeners/BlockListeners.java +++ b/src/main/java/com/songoda/ultimatestacker/listeners/BlockListeners.java @@ -57,6 +57,7 @@ public class BlockListeners implements Listener { boolean isStacked = blockStackManager.isBlock(block.getLocation()); CompatibleMaterial blockType = CompatibleMaterial.getMaterial(block); + if (blockType == null) return; if (isStacked || Settings.STACKABLE_BLOCKS.getStringList().contains(blockType.name())) { BlockStack stack = blockStackManager.getBlock(block, blockType);