mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-13 08:15:04 +07:00
Merge pull request #3622 from genNAowl/distributors-come-on
Allow Distributors to Replace Conveyors
This commit is contained in:
commit
c03400ccbc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user