diff --git a/mods/moreblocks/circular_saw.lua b/mods/moreblocks/circular_saw.lua index 174f344c..60231fc9 100644 --- a/mods/moreblocks/circular_saw.lua +++ b/mods/moreblocks/circular_saw.lua @@ -89,8 +89,9 @@ circular_saw.names = { } function circular_saw:get_cost(inv, stackname) + local name = minetest.registered_aliases[stackname] or stackname for i, item in pairs(inv:get_list("output")) do - if item:get_name() == stackname then + if item:get_name() == name then return circular_saw.cost_in_microblocks[i] end end diff --git a/mods/protector/hud.lua b/mods/protector/hud.lua index e33901e0..4a5d7112 100644 --- a/mods/protector/hud.lua +++ b/mods/protector/hud.lua @@ -1,13 +1,13 @@ local S = protector.intllib -local radius = (tonumber(minetest.setting_get("protector_radius")) or 5) +local radius = (tonumber(minetest.settings:get("protector_radius")) or 5) -- radius limiter (minetest cannot handle node volume of more than 4096000) if radius > 22 then radius = 22 end local hud = {} local hud_timer = 0 -local hud_interval = (tonumber(minetest.setting_get("protector_hud_interval")) or 5) +local hud_interval = (tonumber(minetest.settings:get("protector_hud_interval")) or 5) if hud_interval > 0 then minetest.register_globalstep(function(dtime)