fixtures can be despawned by "mining" them

This commit is contained in:
minjaesong
2021-09-21 00:22:36 +09:00
parent c63b31e964
commit 26c71e691c
22 changed files with 79 additions and 63 deletions

View File

@@ -208,7 +208,8 @@ object WorldSimulator {
for (y in updateYTo downTo updateYFrom) {
val currentTile = world.getTileFromTerrain(x, y)
val prop = BlockCodex[currentTile]
val isAir = currentTile == Block.AIR
// don't let the falling sand destroy the precious storage chest
val isAir = !prop.isSolid && !prop.nameKey.contains("ACTORBLOCK")
val support = prop.maxSupport
val isFallable = support != -1