Skip to content

Commit a28ea6d

Browse files
committed
Fix interaction with world border
1 parent 39167e9 commit a28ea6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/kotlin/com/lambda/interaction/construction/simulation/BuildSimulator.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ object BuildSimulator {
407407
val hitPos = if (!place.airPlace.isEnabled && (currentState.isAir || statePromoting))
408408
pos.offset(neighbor) else pos
409409
val hitSide = neighbor.opposite
410+
if (!world.worldBorder.contains(hitPos)) return@forEach
410411

411412
val voxelShape = blockState(hitPos).getOutlineShape(world, hitPos).let { outlineShape ->
412413
if (!outlineShape.isEmpty || !place.airPlace.isEnabled) outlineShape

0 commit comments

Comments
 (0)