From b1c9e660dfeb3a5f30a1e452e685642b4386bc89 Mon Sep 17 00:00:00 2001 From: nixnoxus Date: Fri, 22 Apr 2022 18:47:43 +0200 Subject: [PATCH] fix typos in `is_vector()` --- mods/default/functions.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/default/functions.lua b/mods/default/functions.lua index eda75809..39b73149 100644 --- a/mods/default/functions.lua +++ b/mods/default/functions.lua @@ -724,9 +724,9 @@ local log_non_player_actions = minetest.settings:get_bool("log_non_player_action -- `vector.check` is available since minetest >= 5.5.0 local is_vector = vector.check or function(v) return v and type(v) == "table" and - v.x or type(v.x) == "number" and - v.y or type(v.y) == "number" and - v.z or type(v.z) == "number" + v.x and type(v.x) == "number" and + v.y and type(v.y) == "number" and + v.z and type(v.z) == "number" end function default.log_player_action(player, ...)