mirror of
https://github.com/APercy/automobiles_pck
synced 2025-07-31 18:45:48 +02:00
check for light
This commit is contained in:
parent
baca376466
commit
772860c54a
@ -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})
|
||||
|
@ -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 = {
|
||||
|
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user