perhaps missed this from before?

This commit is contained in:
Minjae Song
2018-12-12 20:47:06 +09:00
parent 6d553ea583
commit 27f79238a1

View File

@@ -301,6 +301,7 @@ open class GameWorld {
// remove tile from the world
if (terrainDamages[addr] ?: 0f >= BlockCodex[getTileFromTerrain(x, y)].strength) {
setTileTerrain(x, y, 0)
terrainDamages.remove(addr)
return true
}
@@ -329,6 +330,7 @@ open class GameWorld {
// remove tile from the world
if (wallDamages[addr]!! >= BlockCodex[getTileFromWall(x, y)].strength) {
setTileWall(x, y, 0)
wallDamages.remove(addr)
return true
}