Fixed bridge infinite capacity / Fixed crash
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user