mirror of
https://github.com/minetest/minetest_game.git
synced 2025-07-02 06:40:20 +02:00
unnecessary checks in is_vector()
removed
This commit is contained in:
@ -723,10 +723,8 @@ local log_non_player_actions = minetest.settings:get_bool("log_non_player_action
|
|||||||
|
|
||||||
-- `vector.check` is available since minetest >= 5.5.0
|
-- `vector.check` is available since minetest >= 5.5.0
|
||||||
local is_vector = vector.check or function(v)
|
local is_vector = vector.check or function(v)
|
||||||
return v and type(v) == "table" and
|
return type(v) == "table" and
|
||||||
v.x and type(v.x) == "number" and
|
type(v.x) == "number" and type(v.y) == "number" and type(v.z) == "number"
|
||||||
v.y and type(v.y) == "number" and
|
|
||||||
v.z and type(v.z) == "number"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function default.log_player_action(player, ...)
|
function default.log_player_action(player, ...)
|
||||||
|
Reference in New Issue
Block a user