Fix
This commit is contained in:
parent
c6d131dc32
commit
7056bbc622
2 changed files with 3 additions and 1 deletions
Binary file not shown.
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.4 KiB |
|
@ -25,9 +25,11 @@ class Tile extends BaseEntity
|
|||
else
|
||||
@currentLayer += 1
|
||||
|
||||
if @currentLayer > app.game.resources.length
|
||||
if @currentLayer > Object.keys(app.game.resources).length
|
||||
@died = true
|
||||
|
||||
@currentMiner = null if @currentMiner
|
||||
|
||||
tick: ->
|
||||
@currentMiner.tick @
|
||||
|
||||
|
|
Loading…
Reference in a new issue