From bc25b76ac0b66615be24b136ca20e414c25a2a31 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 13 Oct 2018 19:16:53 +1100 Subject: [PATCH] Fix getLegacyCombined --- .../java/com/sk89q/worldedit/world/registry/LegacyMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/registry/LegacyMapper.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/registry/LegacyMapper.java index 730db8761..148d22db2 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/registry/LegacyMapper.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/registry/LegacyMapper.java @@ -210,7 +210,7 @@ public class LegacyMapper { @Nullable public Integer getLegacyCombined(BlockType type) { - return blockStateToLegacyId4Data.get(type.getDefaultState()); + return blockStateToLegacyId4Data.get(type.getDefaultState().getInternalId()); } @Deprecated