Fix variable name.

Fixes #334.
This commit is contained in:
Foz 2016-12-31 22:45:20 -05:00 committed by Diego Martínez
parent 923198a2dd
commit bf0c918d4e

View File

@ -226,7 +226,7 @@ function homedecor.register_furnace(name, furnacedef)
-- XXX: Quick patch, make it better in the future. -- XXX: Quick patch, make it better in the future.
local locked = node.name:find("_locked$") and "_locked" or "" local locked = node.name:find("_locked$") and "_locked" or ""
local desc = minetest.registered_nodes[name..locked].description local desc = minetest.registered_nodes[nname..locked].description
if meta:get_float("fuel_time") < meta:get_float("fuel_totaltime") then if meta:get_float("fuel_time") < meta:get_float("fuel_totaltime") then
local percent = math.floor(meta:get_float("fuel_time") / local percent = math.floor(meta:get_float("fuel_time") /