mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
fix: falling blocks would pass-thru/delete nonsolid blocks
This commit is contained in:
@@ -243,7 +243,7 @@ object WorldSimulator {
|
|||||||
val currentTile = world.getTileFromTerrain(x, y)
|
val currentTile = world.getTileFromTerrain(x, y)
|
||||||
val prop = BlockCodex[currentTile]
|
val prop = BlockCodex[currentTile]
|
||||||
// don't let the falling sand destroy the precious storage chest
|
// don't let the falling sand destroy the precious storage chest
|
||||||
val isAir = !prop.isSolid && !prop.isActorBlock
|
val isAir = prop.hasTag("INCONSEQUENTIAL")
|
||||||
val support = prop.maxSupport
|
val support = prop.maxSupport
|
||||||
val isFallable = support != -1
|
val isFallable = support != -1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user