more treegen wip

This commit is contained in:
minjaesong
2023-11-12 00:49:03 +09:00
parent dd2dfed198
commit e41c7fa408
4 changed files with 50 additions and 42 deletions

View File

@@ -53,7 +53,9 @@ internal object ExportMap : ConsoleCommand {
val colFore = (App.tileMaker.terrainTileColourMap.get(terr) ?: throw NullPointerException("nullterr $terr")).toByteArray()
val colWall = (App.tileMaker.terrainTileColourMap.get(wall) ?: throw NullPointerException("nullwall $wall")).cpy().mul(WALL_OVERLAY).toByteArray()
val colArray = if (ore != Block.AIR) colOre else if (BlockCodex[terr].isSolid) colFore else colWall
val terrProp = BlockCodex[terr]
val colArray = if (ore != Block.AIR) colOre else if (terrProp.isSolid || terrProp.hasTag("TREE")) colFore else colWall
for (i in 0..2) {