Replace minetest.chat_send_player() with return

This commit is contained in:
luk3yx 2018-07-25 07:12:37 +12:00 committed by GitHub
parent ecf48782cc
commit 9ae3312871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,9 +3,9 @@ local oldKill = minetest.registered_chatcommands["killme"].func
minetest.override_chatcommand("killme", {
func = function(name, param)
if knockout.knocked_out[name] == nil then
oldKill(name, param)
return oldKill(name, param)
else
minetest.chat_send_player(name, "You can't kill yourself!")
return false, "You can't kill yourself!"
end
end
})