Likely fix for rotation issue

fixes #996
This commit is contained in:
dordsor21 2021-07-19 20:33:50 +01:00
parent 6ab927fa4d
commit ca1744aa97
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -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()));