3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-10-07 06:10:06 +02:00

Likely fix for rotation issue

fixes #996
Dieser Commit ist enthalten in:
dordsor21 2021-07-19 20:33:50 +01:00
Ursprung 6ab927fa4d
Commit ca1744aa97
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -401,7 +401,7 @@ public class BlockTransformExtent extends ResettableExtent {
if (isDirectional(property)) { if (isDirectional(property)) {
long[] directions = getDirections(property); long[] directions = getDirections(property);
if (directions != null) { if (directions != null) {
int oldIndex = property.getIndex(newMaskedId); int oldIndex = property.getIndex(state.getInternalId());
if (oldIndex >= directions.length) { if (oldIndex >= directions.length) {
if (Settings.IMP.ENABLED_COMPONENTS.DEBUG) { if (Settings.IMP.ENABLED_COMPONENTS.DEBUG) {
LOGGER.warn(String.format("Index outside direction array length found for block:{%s} property:{%s}", state.getBlockType().getId(), property.getName())); LOGGER.warn(String.format("Index outside direction array length found for block:{%s} property:{%s}", state.getBlockType().getId(), property.getName()));