mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-12 18:54:01 +00:00
Fix property pattern
This commit is contained in:
parent
ed83ef1aa7
commit
fd735a6f60
@ -111,11 +111,13 @@ public class PropertyPattern extends AbstractExtentPattern {
|
|||||||
} else {
|
} else {
|
||||||
for (int i = 0; i < values.size(); i++) {
|
for (int i = 0; i < values.size(); i++) {
|
||||||
int statesIndex = current.modifyIndex(stateId, i) >> BlockTypes.BIT_OFFSET;
|
int statesIndex = current.modifyIndex(stateId, i) >> BlockTypes.BIT_OFFSET;
|
||||||
BlockState state = BlockState.getFromInternalId(statesIndex);
|
BlockState state = type.withPropertyId(statesIndex);
|
||||||
|
|
||||||
int existingOrdinal = transformed[state.getOrdinal()];
|
int existingOrdinal = transformed[state.getOrdinal()];
|
||||||
int existing = BlockTypes.states[existingOrdinal].getInternalId();
|
int existing = BlockTypes.states[existingOrdinal].getInternalId();
|
||||||
//states[statesIndex] << BlockTypes.BIT_OFFSET;
|
//states[statesIndex] << BlockTypes.BIT_OFFSET;
|
||||||
transformed[state.getOrdinal()] = property.modifyIndex(existing, index) >> BlockTypes.BIT_OFFSET;
|
BlockState newState = state.withPropertyId(property.modifyIndex(existing, index) >> BlockTypes.BIT_OFFSET);
|
||||||
|
transformed[state.getOrdinal()] = newState.getOrdinal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user