Fixed an issue affecting materials in 1.12.

This commit is contained in:
Brianna 2020-11-30 14:28:04 -06:00
parent 027722b9cc
commit a540f04ded

View File

@ -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);