mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Temporary fix for #1122
This commit is contained in:
parent
d015e6b270
commit
256d7c4e5d
@ -401,6 +401,10 @@ public class BlockTransformExtent extends ResettableExtent {
|
||||
long[] directions = getDirections(property);
|
||||
if (directions != null) {
|
||||
int oldIndex = property.getIndex(newMaskedId);
|
||||
if (oldIndex >= directions.length) {
|
||||
LOGGER.warn(String.format("Index outside direction array length found for block:{%s} propery:{%s}", state.getBlockType().getId(), property.getName()));
|
||||
continue;
|
||||
}
|
||||
Integer newIndex = getNewStateIndex(transform, directions, oldIndex);
|
||||
if (newIndex != null) {
|
||||
newMaskedId = property.modifyIndex(newMaskedId, newIndex);
|
||||
|
Loading…
Reference in New Issue
Block a user