From 772860c54a31d791aedd083003a42e1619dcefb3 Mon Sep 17 00:00:00 2001 From: Alexsandro Percy Date: Thu, 3 Feb 2022 18:31:28 -0300 Subject: [PATCH] check for light --- automobiles_buggy/buggy_entities.lua | 2 +- automobiles_roadster/roadster_crafts.lua | 7 ------- automobiles_roadster/roadster_entities.lua | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/automobiles_buggy/buggy_entities.lua b/automobiles_buggy/buggy_entities.lua index d36d5be..24549a0 100755 --- a/automobiles_buggy/buggy_entities.lua +++ b/automobiles_buggy/buggy_entities.lua @@ -470,7 +470,7 @@ minetest.register_entity("automobiles_buggy:buggy", { end self._last_light_move = self._last_light_move + dtime - if self._last_light_move > 0.25 then + if self._last_light_move > 0.15 then self._last_light_move = 0 if self._show_lights == true then --self.lights:set_properties({is_visible=true}) diff --git a/automobiles_roadster/roadster_crafts.lua b/automobiles_roadster/roadster_crafts.lua index 9db0c14..e9755bc 100644 --- a/automobiles_roadster/roadster_crafts.lua +++ b/automobiles_roadster/roadster_crafts.lua @@ -62,13 +62,6 @@ if minetest.get_modpath("default") then {"group:wood","group:wood", "group:wood"}, } }) - minetest.register_craft({ - output = "automobiles_roadster:engine", - recipe = { - {"default:steel_ingot","default:steel_ingot","default:steel_ingot"}, - {"default:steelblock","default:mese_block", "default:steelblock"}, - } - }) minetest.register_craft({ output = "automobiles_roadster:wheel", recipe = { diff --git a/automobiles_roadster/roadster_entities.lua b/automobiles_roadster/roadster_entities.lua index b49efd1..13791e7 100755 --- a/automobiles_roadster/roadster_entities.lua +++ b/automobiles_roadster/roadster_entities.lua @@ -451,7 +451,7 @@ minetest.register_entity("automobiles_roadster:roadster", { end self._last_light_move = self._last_light_move + dtime - if self._last_light_move > 0.25 then + if self._last_light_move > 0.15 then self._last_light_move = 0 if self._show_lights == true and is_attached then self.lights:set_properties({is_visible=true})