mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
fix: placing door would kill a grass
This commit is contained in:
@@ -102,7 +102,8 @@ object WorldSimulator {
|
||||
|
||||
fun buryGrassImmediately() {
|
||||
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) {
|
||||
//grassPlacedByPlayer.add(it)
|
||||
world.setTileTerrain(it.posX, it.posY + 1, Block.DIRT, true)
|
||||
|
||||
Reference in New Issue
Block a user