diff options
author | Dmitry Kostenko <codeforsmile@gmail.com> | 2022-04-01 01:01:44 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-05-14 18:33:42 +0200 |
commit | cc9147730836c7b3d8047fad00662ca13b0b93ea (patch) | |
tree | 61be9bd8653c4470bbab4c1fc1d231d72a8d8b60 | |
parent | ac139ec03deb67613e37ee53cc6fdf33a00b583b (diff) | |
download | minetest-cc9147730836c7b3d8047fad00662ca13b0b93ea.tar.gz minetest-cc9147730836c7b3d8047fad00662ca13b0b93ea.tar.bz2 minetest-cc9147730836c7b3d8047fad00662ca13b0b93ea.zip |
Avoid negation of comparison operator (luacheck warning)
-rw-r--r-- | builtin/game/chat.lua | 2 |
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 |