Use default blockstate internal id for creating blockstates from their serialised form

Fixes #1294
This commit is contained in:
dordsor21 2021-09-13 13:14:49 +01:00
parent 40a4010041
commit adf83bdd0a
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -185,7 +185,7 @@ public class BlockState implements BlockStateHolder<BlockState>, Pattern {
if (defaultState != null) { if (defaultState != null) {
stateId = defaultState.getInternalId(); stateId = defaultState.getInternalId();
} else { } else {
stateId = type.getInternalId(); stateId = type.getDefaultState().getInternalId();
} }
int length = state.length(); int length = state.length();
AbstractProperty property = null; AbstractProperty property = null;