unnecessary checks in `is_vector()` removed
This commit is contained in:
parent
b1c9e660df
commit
76c67ac84e
|
@ -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, ...)
|
||||||
|
|
Loading…
Reference in New Issue