Remove duplicate function definition

This commit is contained in:
Foz 2016-04-24 21:08:01 -04:00
parent 4f274f6b56
commit c32b0f913a

View File

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