record_protection_violation: fix player name not being passed
parent
e795f51293
commit
4ea222fd6a
BIN
advtrains.zip
BIN
advtrains.zip
Binary file not shown.
|
@ -99,7 +99,7 @@ advtrains.register_tracks("default", {
|
|||
end,
|
||||
on_receive_fields = function(pos, formname, fields, player)
|
||||
if advtrains.is_protected(pos, player:get_player_name()) then
|
||||
minetest.record_protection_violation(pos, name)
|
||||
minetest.record_protection_violation(pos, player:get_player_name())
|
||||
return
|
||||
end
|
||||
local meta=minetest.get_meta(pos)
|
||||
|
|
|
@ -35,7 +35,7 @@ minetest.register_craftitem("advtrains_luaautomation:pcnaming",{
|
|||
if pointed_thing.type=="node" then
|
||||
local pos=pointed_thing.under
|
||||
if advtrains.is_protected(pos, pname) then
|
||||
minetest.record_protection_violation(pos, name)
|
||||
minetest.record_protection_violation(pos, pname)
|
||||
return
|
||||
end
|
||||
local node=minetest.get_node(pos)
|
||||
|
|
Loading…
Reference in New Issue