aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorDmitry Kostenko <codeforsmile@gmail.com>2022-04-01 01:01:44 +0200
committersfan5 <sfan5@live.de>2022-04-01 09:00:39 +0200
commitcf650fcaac33af2c60af3880f9b28358e30d75a4 (patch)
treeca4f20c6ec37ff2e6e9ef88953e85145cb080424 /builtin
parent3dd7d7867b14058d3329f1ce2bd2e85713ff50b1 (diff)
downloadminetest-cf650fcaac33af2c60af3880f9b28358e30d75a4.tar.gz
minetest-cf650fcaac33af2c60af3880f9b28358e30d75a4.tar.bz2
minetest-cf650fcaac33af2c60af3880f9b28358e30d75a4.zip
Avoid negation of comparison operator (luacheck warning)
Diffstat (limited to 'builtin')
-rw-r--r--builtin/game/chat.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/chat.lua b/builtin/game/chat.lua
index b73e32876..493bb92c0 100644
--- a/builtin/game/chat.lua
+++ b/builtin/game/chat.lua
@@ -1282,7 +1282,7 @@ local function handle_kill_command(killer, victim)
return false, S("@1 is already dead.", victim)
end
end
- if not killer == victim then
+ if killer ~= victim then
core.log("action", string.format("%s killed %s", killer, victim))
end
-- Kill victim