size >= other.size

This commit is contained in:
Leonwang4234
2020-11-27 21:15:33 -08:00
parent ab8a381ad9
commit 4cda52caf7

View File

@@ -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{