From 4cda52caf77b6b5296060b48b9fb948582d144f3 Mon Sep 17 00:00:00 2001 From: Leonwang4234 <62972692+Leonwang4234@users.noreply.github.com> Date: Fri, 27 Nov 2020 21:15:33 -0800 Subject: [PATCH] size >= other.size --- 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 09b70624e2..169f3b4e60 100644 --- a/core/src/mindustry/world/blocks/distribution/Router.java +++ b/core/src/mindustry/world/blocks/distribution/Router.java @@ -26,7 +26,7 @@ public class Router extends Block{ @Override public boolean canReplace(Block other){ if(other.alwaysReplace) return true; - return (other != this || rotate) && this.group != BlockGroup.none && other.group == this.group; + return (other != this || rotate) && this.group != BlockGroup.none && other.group == this.group && size >= other.size; } public class RouterBuild extends Building implements ControlBlock{