4 Commits

2 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@ local function check_privs(meta, player)
local shared = " " .. meta:get_string("shared") .. " " local shared = " " .. meta:get_string("shared") .. " "
if name == meta:get_string("owner") then if name == meta:get_string("owner") then
return true return true
elseif shared:find(" " .. name .. " ") then elseif shared:find(" " .. name .. " ", 1, true) then
return true return true
else else
return false return false

View File

@ -33,6 +33,7 @@ function generate_chest_def(def)
choppy=2, choppy=2,
oddly_breakable_by_hand=2 oddly_breakable_by_hand=2
}, },
is_ground_content = false,
sounds = def.sounds or default.node_sound_wood_defaults(), sounds = def.sounds or default.node_sound_wood_defaults(),
after_place_node = function(pos, placer) after_place_node = function(pos, placer)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)