[Resolved 0.2.9] First steps, level-02: mining drill count

This subforum contains all the issues which we already resolved.
wrtlprnft
Fast Inserter
Fast Inserter
Posts: 155
Joined: Thu Feb 21, 2013 8:49 pm
Contact:

[Resolved 0.2.9] First steps, level-02: mining drill count

Post by wrtlprnft »

Hi,

on the second demo level, if I mine all the mining drills, the current count is displayed as -1:

Image

The error is in /usr/share/factorio/campaigns/demo/level-02/control.lua:251 :-)
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: First steps, level-02: mining drill count off by one

Post by kovarex »

Thank you for the report.

This was so ugly way to do it anyway, so instead of just correcting the number, I implemented interface that allows to call command like this:

Code: Select all

game.getplayer().force.getentitycount("burner-mining-drill")
So this will be correct in the upcoming 0.2.9 version.
Post Reply

Return to “Resolved Problems and Bugs”