mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 18:20:36 +01:00
fix crash due to bad args to function
remove unused variable
This commit is contained in:
parent
2f7b90ed02
commit
6b164a75da
@ -1866,7 +1866,7 @@ end
|
|||||||
local function has_locked_chest_privilege(meta, player)
|
local function has_locked_chest_privilege(meta, player)
|
||||||
local name = ""
|
local name = ""
|
||||||
if player then
|
if player then
|
||||||
if minetest.check_player_privs(player, "protection_bypass") then
|
if minetest.check_player_privs(player:get_player_name(), {protection_bypass = true}) then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
name = player:get_player_name()
|
name = player:get_player_name()
|
||||||
|
@ -670,7 +670,6 @@ minetest.register_node("fences:fencegate", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
me2 = minetest.get_node(pos)
|
|
||||||
meta2 = minetest.get_meta(pos)
|
meta2 = minetest.get_meta(pos)
|
||||||
meta2:set_int("state", 0)
|
meta2:set_int("state", 0)
|
||||||
state2 = 0
|
state2 = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user