fixed a bug where solid actorblock would cause wrong tile connection and ambient occlusion

This commit is contained in:
minjaesong
2022-07-28 23:21:24 +09:00
parent 48443a9c11
commit d7d3e430ef
2 changed files with 30 additions and 23 deletions

View File

@@ -108,4 +108,11 @@ class BlockProp {
val extra = Codex()
var isActorBlock: Boolean = false
/**
* Is this tile should be treated as "solid" for tile connecting.
*/
val isSolidForTileCnx: Boolean
get() = if (tags.contains("DORENDER") || !isActorBlock) isSolid else false
}