mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-23 05:51:27 -07:00
Fixed bridge infinite capacity / Fixed crash
This commit is contained in:
parent
a01f64080d
commit
0b4b30286d
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ public class Generation{
|
|||
return null;
|
||||
}
|
||||
|
||||
if(!block.isValid(tiles[worldx][worldy])) continue;
|
||||
if(!block.isValid(tiles[worldx][worldy]) || tiles[worldx][worldy].floor().drops == null) continue;
|
||||
|
||||
Item drop = tiles[worldx][worldy].floor().drops.item;
|
||||
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ public class ItemBridge extends Block{
|
|||
|
||||
if(rel == rel2) return false;
|
||||
}else{
|
||||
return source.block() instanceof ItemBridge && source.<ItemBridgeEntity>entity().link == tile.packedPosition();
|
||||
return source.block() instanceof ItemBridge && source.<ItemBridgeEntity>entity().link == tile.packedPosition() && tile.entity.items.total() < itemCapacity;
|
||||
}
|
||||
|
||||
return tile.entity.items.total() < itemCapacity;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue