Misc. cleaning

This commit is contained in:
Jean-Patrick Guerrero 2016-02-27 21:16:44 +01:00
parent 203a82c9bf
commit df7bfb9f2e
4 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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}

View File

@ -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({