Fix a crash when changing PvP state from inventory

master
upsilon 2017-05-26 19:17:39 +02:00
parent 0e8da112bf
commit 402c05ae81
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ if minetest.get_modpath("unified_inventory") then
type = "image",
image = "pvp.png",
action = function(player)
pvpplus.pvp_toggle(player_name)
pvpplus.pvp_toggle(player:get_player_name())
end
})
end