aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kostenko <codeforsmile@gmail.com>2022-04-01 01:01:44 +0200
committersfan5 <sfan5@live.de>2022-05-14 18:33:42 +0200
commitcc9147730836c7b3d8047fad00662ca13b0b93ea (patch)
tree61be9bd8653c4470bbab4c1fc1d231d72a8d8b60
parentac139ec03deb67613e37ee53cc6fdf33a00b583b (diff)
downloadminetest-cc9147730836c7b3d8047fad00662ca13b0b93ea.tar.gz
minetest-cc9147730836c7b3d8047fad00662ca13b0b93ea.tar.bz2
minetest-cc9147730836c7b3d8047fad00662ca13b0b93ea.zip
Avoid negation of comparison operator (luacheck warning)
-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