render is fixed (tile breakage not tested as loading items are still wip); air tile no longer has tilenum of 0

This commit is contained in:
minjaesong
2021-02-24 11:04:11 +09:00
parent 36387753b1
commit b6a688c484
4 changed files with 19 additions and 4 deletions

View File

@@ -152,6 +152,9 @@ open class GameWorld : Disposable {
tileNumberToNameMap[it.value.tileNumber] = it.key
tileNameToNumberMap[it.key] = it.value.tileNumber
}
// AN EXCEPTIONAL TERM: tilenum 0 is always redirected to Air tile, even if the tilenum for actual Air tile is not zero
tileNumberToNameMap[0] = Block.AIR
}
/**
@@ -201,6 +204,9 @@ open class GameWorld : Disposable {
// TODO rename wire map
}
}
// AN EXCEPTIONAL TERM: tilenum 0 is always redirected to Air tile, even if the tilenum for actual Air tile is not zero
tileNumberToNameMap[0] = Block.AIR
}
/**