Skip to content

Commit

Permalink
Fix spatial cells not properly checking the maximum size (#7061)
Browse files Browse the repository at this point in the history
Fixed a bug where Spatial Storage Cells checked if all 3 dimensions exceeded the maximum size, rather than checking if at least one exceeds it.
  • Loading branch information
soepie7 authored and Technici4n committed May 22, 2023
1 parent 5224174 commit 7443411
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public boolean doSpatialTransition(ItemStack is, ServerLevel level, BlockPos min
final int targetY = max.getY() - min.getY() - 1;
final int targetZ = max.getZ() - min.getZ() - 1;
final int maxSize = this.getMaxStoredDim(is);
if (targetX > maxSize && targetY > maxSize && targetZ > maxSize) {
if (targetX > maxSize || targetY > maxSize || targetZ > maxSize) {
AELog.info(
"Failing spatial transition because the transfer area (%dx%dx%d) exceeds the cell capacity (%s).",
targetX, targetY, targetZ, maxSize);
Expand Down

0 comments on commit 7443411

Please sign in to comment.