1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-07-02 06:40:20 +02:00

fix typos in is_vector()

This commit is contained in:
nixnoxus
2022-04-22 18:47:43 +02:00
parent c3466dbd18
commit b1c9e660df

View File

@ -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, ...)