Skip to content

Commit 0ab552a

Browse files
committed
Fix issue with legacy block data (#809)
Fixes #809
1 parent 7a4a285 commit 0ab552a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/comphenix/protocol/wrappers/WrappedBlockData.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,7 @@ public WrappedBlockData deepClone() {
235235
}
236236

237237
private static WrappedBlockData createOldData(Material type) {
238-
Object blockData = GET_BLOCK.invoke(null, type);
239-
return new OldBlockData(blockData);
238+
return createOldData(type, 0);
240239
}
241240

242241
private static WrappedBlockData createOldData(Material type, int data) {

0 commit comments

Comments
 (0)