Fixed duct bridges accepting without links
This commit is contained in:
Binary file not shown.
@@ -49,6 +49,9 @@ public class DuctBridge extends DirectionBridge{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean acceptItem(Building source, Item item){
|
public boolean acceptItem(Building source, Item item){
|
||||||
|
//only accept if there's an output point.
|
||||||
|
if(findLink() == null) return false;
|
||||||
|
|
||||||
int rel = this.relativeToEdge(source.tile);
|
int rel = this.relativeToEdge(source.tile);
|
||||||
return items.total() < itemCapacity && rel != rotation && occupied[(rel + 2) % 4] == null;
|
return items.total() < itemCapacity && rel != rotation && occupied[(rel + 2) % 4] == null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user