Merge pull request #1 from luk3yx/patch-1

Replace minetest.chat_send_player() with return (waaa I don't wanna but luk3yx is gonna annoy me about it)
This commit is contained in:
Billy S 2018-07-24 15:17:57 -04:00 committed by GitHub
commit a08f093b42
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
})