diff --git a/Core/src/main/java/com/songoda/core/compatibility/CompatibleMaterial.java b/Core/src/main/java/com/songoda/core/compatibility/CompatibleMaterial.java index 80ad177a..6c09b892 100644 --- a/Core/src/main/java/com/songoda/core/compatibility/CompatibleMaterial.java +++ b/Core/src/main/java/com/songoda/core/compatibility/CompatibleMaterial.java @@ -1574,7 +1574,7 @@ public enum CompatibleMaterial { public void applyToBlock(Block block) { if (block == null) return; block.setType(material); - if (data != -1 && ServerVersion.isServerVersionAtOrBelow(ServerVersion.V1_12)) { + if (data != null && data != -1 && ServerVersion.isServerVersionAtOrBelow(ServerVersion.V1_12)) { try { methodSetData.invoke(block, data); } catch (IllegalAccessException | InvocationTargetException e) {