tileatlas: atlas size will automatically expand if it's too small

This commit is contained in:
minjaesong
2023-08-14 18:47:39 +09:00
parent fab4179068
commit 5f7f724058
4 changed files with 133 additions and 36 deletions

View File

@@ -349,7 +349,7 @@ internal object BlocksDrawer {
val tileNumber = if (thisTile == Block.AIR) 0
// special case: actorblocks and F3 key
else if (BlockCodex.hasProp(thisTile) && BlockCodex[thisTile].isActorBlock &&
!BlockCodex[thisTile].tags.contains("DORENDER") && !KeyToggler.isOn(Keys.F3))
!BlockCodex[thisTile].hasTag("DORENDER") && !KeyToggler.isOn(Keys.F3))
0
// special case: fluids
else if (mode == FLUID)