jeremyshannon / Exile

This repo is parked, moved to codeberg.org
https://codeberg.org/Mantar/Exile
GNU General Public License v3.0
16 stars 12 forks source link

Bug fix - get_int returns 0 on nil values #212

Closed Izzyb1234 closed 1 year ago

Izzyb1234 commented 1 year ago

combined fire blocks were turning to ash right away because they had fuel=0 value

jeremyshannon commented 1 year ago

Isn't "meta_table" undefined here? Why not use meta:get("fuel") and convert it to a number if it's not nil?

Izzyb1234 commented 1 year ago

oh crap, good catch, I missed copying a line into the patch. I'll update