mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
fix: placing door would kill a grass
This commit is contained in:
@@ -102,7 +102,8 @@ object WorldSimulator {
|
|||||||
|
|
||||||
fun buryGrassImmediately() {
|
fun buryGrassImmediately() {
|
||||||
ingame.terrainChangeQueue.forEach {
|
ingame.terrainChangeQueue.forEach {
|
||||||
if (BlockCodex[it.new].isSolid) {
|
val blockProp = BlockCodex[it.new]
|
||||||
|
if (blockProp.isSolid && !blockProp.isActorBlock) {
|
||||||
if (world.getTileFromTerrain(it.posX, it.posY + 1) == Block.GRASS) {
|
if (world.getTileFromTerrain(it.posX, it.posY + 1) == Block.GRASS) {
|
||||||
//grassPlacedByPlayer.add(it)
|
//grassPlacedByPlayer.add(it)
|
||||||
world.setTileTerrain(it.posX, it.posY + 1, Block.DIRT, true)
|
world.setTileTerrain(it.posX, it.posY + 1, Block.DIRT, true)
|
||||||
|
|||||||
Reference in New Issue
Block a user