diff --git a/cooking.lua b/cooking.lua index c1213c7..21a5892 100644 --- a/cooking.lua +++ b/cooking.lua @@ -121,7 +121,7 @@ minetest.register_abm({ for _, obj in pairs(objs) do if obj and obj:get_luaentity() then local itemstring = obj:get_luaentity().itemstring:match(":([%w_]+)") - if not next(ingredients) then + if ingredients == {} then for _, rep in pairs(ingredients) do if itemstring == rep then return end end @@ -137,7 +137,9 @@ minetest.register_abm({ if #ingredients >= 2 then for _, obj in pairs(objs) do - if obj and obj:get_luaentity() then obj:remove() end + if obj and obj:get_luaentity() then + obj:remove() + end end minetest.set_node(pos, {name="xdecor:cauldron_soup", param2=node.param2}) end diff --git a/mailbox.lua b/mailbox.lua index 071cff4..984ce3e 100644 --- a/mailbox.lua +++ b/mailbox.lua @@ -76,9 +76,9 @@ function mailbox.rightclick(pos, _, clicker) local owner = meta:get_string("owner") if player == owner then - minetest.show_formspec(player, "", mailbox:formspec(pos, owner, 1)) + minetest.show_formspec(player, "xdecor:mailbox", mailbox:formspec(pos, owner, 1)) else - minetest.show_formspec(player, "", mailbox:formspec(pos, owner, 0)) + minetest.show_formspec(player, "xdecor:mailbox", mailbox:formspec(pos, owner, 0)) end end diff --git a/pressureplates.lua b/pressureplates.lua index 1c3c943..f3d812c 100644 --- a/pressureplates.lua +++ b/pressureplates.lua @@ -20,7 +20,7 @@ function plate.door_toggle(pos_plate, pos_door, player) end function plate.timer(pos) - local objs = minetest.get_objects_inside_radius(pos, 0.8) + local objs = minetest.get_objects_inside_radius(pos, 0.6) if objs == {} then return true end local minp = {x=pos.x-2, y=pos.y, z=pos.z-2} local maxp = {x=pos.x+2, y=pos.y, z=pos.z+2} diff --git a/recipes.lua b/recipes.lua index 5f50a4f..3917638 100644 --- a/recipes.lua +++ b/recipes.lua @@ -257,7 +257,7 @@ minetest.register_craft({ minetest.register_craft({ output = "xdecor:pressure_stone_off", type = "shapeless", - recipe = {"default:stone", "default:stone"} + recipe = {"group:stone", "group:stone"} }) minetest.register_craft({