From 7f21d61078b74c40823bf704b951df373ec51cc5 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 18 Oct 2020 19:54:52 -0400 Subject: [PATCH] Crash fix --- core/src/mindustry/world/blocks/distribution/Router.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/distribution/Router.java b/core/src/mindustry/world/blocks/distribution/Router.java index f632be6862..766a1bafff 100644 --- a/core/src/mindustry/world/blocks/distribution/Router.java +++ b/core/src/mindustry/world/blocks/distribution/Router.java @@ -104,7 +104,7 @@ public class Router extends Block{ if(unit.isShooting()){ Building other = nearby(angle); - if(other.acceptItem(this, item)){ + if(other != null && other.acceptItem(this, item)){ return other; } }