blockprop: fall is now grav

This commit is contained in:
minjaesong
2019-06-11 20:55:28 +09:00
parent 196ae40bbb
commit 23b103892e
11 changed files with 139 additions and 137 deletions

View File

@@ -254,7 +254,7 @@ object WorldSimulator {
val tile = world.getTileFromTerrain(x, y) ?: Block.STONE
val tileBelow = world.getTileFromTerrain(x, y + 1) ?: Block.STONE
if (tile.isFallable()) {
if (tile.maxSupport()) {
// displace fluid. This statement must precede isSolid()
if (tileBelow.isFluid()) {
// remove tileThis to create air pocket
@@ -316,7 +316,7 @@ object WorldSimulator {
}
fun Int.isFallable() = BlockCodex[this].isFallable
fun Int.isFallable() = BlockCodex[this].maxSupport