Remove duplicate function definition
This commit is contained in:
parent
4f274f6b56
commit
c32b0f913a
@ -158,7 +158,6 @@ minetest.register_abm( {
|
||||
end
|
||||
} )
|
||||
|
||||
|
||||
local function has_locked_chest_privilege(meta, player)
|
||||
if player:get_player_name() ~= meta:get_string("owner") then
|
||||
return false
|
||||
@ -166,7 +165,6 @@ local function has_locked_chest_privilege(meta, player)
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
output = "castle:workbench",
|
||||
recipe = {
|
||||
@ -237,13 +235,6 @@ minetest.register_node("castle:crate", {
|
||||
end,
|
||||
})
|
||||
|
||||
local function has_locked_chest_privilege(meta, player)
|
||||
if player:get_player_name() ~= meta:get_string("owner") then
|
||||
return false
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
output = "castle:crate",
|
||||
recipe = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user