mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 09:17:39 +00:00
Use default blockstate internal id for creating blockstates from their serialised form
Fixes #1294
This commit is contained in:
parent
40a4010041
commit
adf83bdd0a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user