mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-16 16:46:07 +09:00
perhaps missed this from before?
This commit is contained in:
@@ -301,6 +301,7 @@ open class GameWorld {
|
|||||||
// remove tile from the world
|
// remove tile from the world
|
||||||
if (terrainDamages[addr] ?: 0f >= BlockCodex[getTileFromTerrain(x, y)].strength) {
|
if (terrainDamages[addr] ?: 0f >= BlockCodex[getTileFromTerrain(x, y)].strength) {
|
||||||
setTileTerrain(x, y, 0)
|
setTileTerrain(x, y, 0)
|
||||||
|
terrainDamages.remove(addr)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -329,6 +330,7 @@ open class GameWorld {
|
|||||||
// remove tile from the world
|
// remove tile from the world
|
||||||
if (wallDamages[addr]!! >= BlockCodex[getTileFromWall(x, y)].strength) {
|
if (wallDamages[addr]!! >= BlockCodex[getTileFromWall(x, y)].strength) {
|
||||||
setTileWall(x, y, 0)
|
setTileWall(x, y, 0)
|
||||||
|
wallDamages.remove(addr)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user