forked from minetest-mods/more_chests
Compare commits
4 Commits
7077a16ac5
...
master
Author | SHA1 | Date | |
---|---|---|---|
c626c9f675 | |||
e716e79640 | |||
98edbfc5cc | |||
cc52a10811 |
@ -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
|
||||||
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user