Update Router.java

This commit is contained in:
Leonwang4234
2020-11-26 23:28:05 -08:00
parent 11d864f2b5
commit ced6369b25

View File

@@ -23,6 +23,11 @@ public class Router extends Block{
noUpdateDisabled = true;
}
public boolean canReplace(Block other){
if(other.alwaysReplace) return true;
return (other != this || rotate) && this.group != BlockGroup.none && other.group == this.group;
}
public class RouterBuild extends Building implements ControlBlock{
public Item lastItem;
public Tile lastInput;