From adf83bdd0a0f98e6cd57fd350779a604057deef5 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 13 Sep 2021 13:14:49 +0100 Subject: [PATCH] Use default blockstate internal id for creating blockstates from their serialised form Fixes #1294 --- .../main/java/com/sk89q/worldedit/world/block/BlockState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockState.java b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockState.java index 520a5abd4..cb35f6587 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockState.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/world/block/BlockState.java @@ -185,7 +185,7 @@ public class BlockState implements BlockStateHolder, Pattern { if (defaultState != null) { stateId = defaultState.getInternalId(); } else { - stateId = type.getInternalId(); + stateId = type.getDefaultState().getInternalId(); } int length = state.length(); AbstractProperty property = null;