Fixed bridge infinite capacity / Fixed crash

This commit is contained in:
Anuken
2018-09-02 15:19:54 -04:00
parent a01f64080d
commit 0b4b30286d
2 changed files with 2 additions and 2 deletions

View File

@@ -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;