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

Fixes #1294
Dieser Commit ist enthalten in:
dordsor21 2021-09-13 13:14:49 +01:00
Ursprung 40a4010041
Commit adf83bdd0a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -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;