From 8ec31d83db9ae20d1cb89b6098b8ac8e5ff5e8eb Mon Sep 17 00:00:00 2001 From: Dan Mulloy Date: Fri, 24 Aug 2018 10:44:37 -0400 Subject: [PATCH] Fix #508 --- .../com/comphenix/protocol/wrappers/WrappedBlockData.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/API/src/main/java/com/comphenix/protocol/wrappers/WrappedBlockData.java b/modules/API/src/main/java/com/comphenix/protocol/wrappers/WrappedBlockData.java index 9a0d7589..c8d3c28f 100644 --- a/modules/API/src/main/java/com/comphenix/protocol/wrappers/WrappedBlockData.java +++ b/modules/API/src/main/java/com/comphenix/protocol/wrappers/WrappedBlockData.java @@ -143,7 +143,7 @@ public abstract class WrappedBlockData extends AbstractWrapper { } private static WrappedBlockData createNewData(Material material, int data) { - return new NewBlockData(FROM_LEGACY_DATA.invoke(material, (byte) data)); + return new NewBlockData(FROM_LEGACY_DATA.invoke(null, material, (byte) data)); } } @@ -327,4 +327,4 @@ public abstract class WrappedBlockData extends AbstractWrapper { return false; } -} \ No newline at end of file +}