Fix state in pvptable

master
upsilon 2017-03-26 12:12:53 +02:00
parent 84719c1f2e
commit 2073728b6e
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ function pvpplus.pvp_set(player_name, state)
end
local player = minetest.get_player_by_name(player_name)
pvptable[player_name] = true
pvptable[player_name] = state
local enabled_disabled = (state and "enabled") or "disabled"