mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-02-04 14:30:57 -08:00
Merge pull request #3622 from genNAowl/distributors-come-on
Allow Distributors to Replace Conveyors
This commit is contained in:
commit
c03400ccbc
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue