Skip to content

Commit

Permalink
Update init.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Elkien3 committed Dec 13, 2022
1 parent eaafa57 commit 88f1b52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mods/cars/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ minetest.register_entity("cars:towline", {
else
rot = self.startobj:get_rotation()
end
if not rot then
remove_towline(self.startobj)
return
end
offset = vector.rotate(offset, rot)
self.start = vector.add(self.start,offset)
end
Expand Down

0 comments on commit 88f1b52

Please sign in to comment.