Fixed duct bridges accepting without links

This commit is contained in:
Anuken 2022-04-08 09:55:54 -04:00
parent a3b6aaf7a6
commit 11f5346395
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View file

@ -49,6 +49,9 @@ public class DuctBridge extends DirectionBridge{
@Override
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);
return items.total() < itemCapacity && rel != rotation && occupied[(rel + 2) % 4] == null;
}