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)) {
long[] directions = getDirections(property);
if (directions != null) {
int oldIndex = property.getIndex(newMaskedId);
int oldIndex = property.getIndex(state.getInternalId());
if (oldIndex >= directions.length) {
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()));