1
0
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:
crabman77 2016-04-16 22:26:05 +02:00
parent 2f7b90ed02
commit 6b164a75da
2 changed files with 1 additions and 2 deletions

View File

@ -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()

View File

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