Crash fix
This commit is contained in:
@@ -47,8 +47,10 @@ public class SteamVent extends Floor{
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void drawBase(Tile tile){
|
public void drawMain(Tile tile){
|
||||||
parent.drawBase(tile);
|
if(parent instanceof Floor floor){
|
||||||
|
floor.drawMain(tile);
|
||||||
|
}
|
||||||
|
|
||||||
if(checkAdjacent(tile)){
|
if(checkAdjacent(tile)){
|
||||||
Draw.rect(variantRegions[Mathf.randomSeed(tile.pos(), 0, Math.max(0, variantRegions.length - 1))], tile.worldx() - tilesize, tile.worldy() - tilesize);
|
Draw.rect(variantRegions[Mathf.randomSeed(tile.pos(), 0, Math.max(0, variantRegions.length - 1))], tile.worldx() - tilesize, tile.worldy() - tilesize);
|
||||||
|
|||||||
Reference in New Issue
Block a user