Merge pull request #3622 from genNAowl/distributors-come-on

Allow Distributors to Replace Conveyors
This commit is contained in:
Anuken 2020-12-01 16:46:09 -05:00 committed by GitHub
commit c03400ccbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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