Skip to content

Commit

Permalink
fix lighton being played globally
Browse files Browse the repository at this point in the history
  • Loading branch information
Elkien3 committed Dec 12, 2022
1 parent ab846b9 commit a164381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/cars/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function cars.setlight(obj, light, val)
minetest.sound_play("lighton", {
max_hear_distance = 6,
gain = 1,
object = light.object
object = obj.object
}, true)
end
if beamlight and light == "headlights" then
Expand Down

0 comments on commit a164381

Please sign in to comment.