Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 11:00:05 +01:00
Fix property pattern
Dieser Commit ist enthalten in:
Ursprung
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren