Fix crash when using the playerkiller

Fixes #9
This commit is contained in:
upsilon 2018-08-20 10:42:11 +02:00
parent 8a56370ce8
commit 2b2faeca02
No known key found for this signature in database
GPG Key ID: A80DAE1F266E1C3C

@ -30,7 +30,7 @@ local kill_nearest_player = function(pos)
-- And kill him -- And kill him
nearest:set_hp(0) nearest:set_hp(0)
minetest.log("action", "Player "..owner.." kills player "..nearest.." using a MoreMesecons Player Killer.") minetest.log("action", "Player "..owner.." kills player "..nearest:get_player_name().." using a MoreMesecons Player Killer.")
end end
minetest.register_craft({ minetest.register_craft({