From ac3fcd7ded4388f2aaf8dcf4884e339465c98311 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Thu, 3 Feb 2022 17:39:49 -0300 Subject: [PATCH] check for raycast --- automobiles_buggy/buggy_entities.lua | 2 +- automobiles_roadster/roadster_entities.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/automobiles_buggy/buggy_entities.lua b/automobiles_buggy/buggy_entities.lua index 4a6adf5..eb3a862 100755 --- a/automobiles_buggy/buggy_entities.lua +++ b/automobiles_buggy/buggy_entities.lua @@ -553,7 +553,7 @@ minetest.register_entity("automobiles_buggy:buggy", { end self._last_ground_check = self._last_ground_check + dtime - if self._last_ground_check > 0.15 then + if self._last_ground_check > 0.25 then self._last_ground_check = 0 automobiles_lib.ground_get_distances(self, 0.372, 2.3) end diff --git a/automobiles_roadster/roadster_entities.lua b/automobiles_roadster/roadster_entities.lua index 832c591..4968b3c 100755 --- a/automobiles_roadster/roadster_entities.lua +++ b/automobiles_roadster/roadster_entities.lua @@ -526,7 +526,7 @@ minetest.register_entity("automobiles_roadster:roadster", { end self._last_ground_check = self._last_ground_check + dtime - if self._last_ground_check > 0.15 then + if self._last_ground_check > 0.25 then self._last_ground_check = 0 automobiles_lib.ground_get_distances(self, 0.5, 2.422) end