mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-28 00:10:48 -07:00
Fixed duct bridges accepting without links
This commit is contained in:
parent
a3b6aaf7a6
commit
11f5346395
2 changed files with 3 additions and 0 deletions
Binary file not shown.
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue