check for light

This commit is contained in:
Alexsandro Percy 2022-02-03 18:31:28 -03:00
parent baca376466
commit 772860c54a
3 changed files with 2 additions and 9 deletions

View File

@ -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})

View File

@ -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 = {

View File

@ -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})