From 1bb97cae39bc4a8faa91626053067ddc18fa7a7e Mon Sep 17 00:00:00 2001 From: Anuken Date: Thu, 25 Feb 2021 18:34:24 -0500 Subject: [PATCH] Fixed #4792 --- core/src/mindustry/world/blocks/distribution/ItemBridge.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/distribution/ItemBridge.java b/core/src/mindustry/world/blocks/distribution/ItemBridge.java index 91d25be0c4..527acbe78a 100644 --- a/core/src/mindustry/world/blocks/distribution/ItemBridge.java +++ b/core/src/mindustry/world/blocks/distribution/ItemBridge.java @@ -151,7 +151,9 @@ public class ItemBridge extends Block{ for(int i = 0; i < plans.size - 1; i++){ var cur = plans.get(i); var next = plans.get(i + 1); - cur.config = new Point2(next.x - cur.x, next.y - cur.y); + if(positionsValid(cur.x, cur.y, next.x, next.y)){ + cur.config = new Point2(next.x - cur.x, next.y - cur.y); + } } }