Merge pull request #3622 from genNAowl/distributors-come-on
Allow Distributors to Replace Conveyors
This commit is contained in:
@@ -23,6 +23,12 @@ public class Router extends Block{
|
|||||||
noUpdateDisabled = true;
|
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 class RouterBuild extends Building implements ControlBlock{
|
||||||
public Item lastItem;
|
public Item lastItem;
|
||||||
public Tile lastInput;
|
public Tile lastInput;
|
||||||
|
|||||||
Reference in New Issue
Block a user