mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +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 name = ""
|
||||
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
|
||||
end
|
||||
name = player:get_player_name()
|
||||
|
@ -670,7 +670,6 @@ minetest.register_node("fences:fencegate", {
|
||||
}
|
||||
},
|
||||
on_construct = function(pos)
|
||||
me2 = minetest.get_node(pos)
|
||||
meta2 = minetest.get_meta(pos)
|
||||
meta2:set_int("state", 0)
|
||||
state2 = 0
|
||||
|
Loading…
Reference in New Issue
Block a user