Skip to content

Commit

Permalink
Add missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Extex101 committed Dec 9, 2020
1 parent 229e4a2 commit 3621680
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ for _, colour in pairs(bikelist) do
on_activate = function(self, staticdata)
if staticdata and biker.signs then
self.platenumber = staticdata
local pos = self.object:get_pos()
self.plate = minetest.add_entity(pos, "motorbike:licenseplate")
if self.plate then
self.plate:set_attach(self.object, "", { x = -0.2, y = -1.9, z = -12.12 }, { x = 0, y = 0, z = 0 })
Expand Down Expand Up @@ -170,4 +171,4 @@ if biker.signs then
end)
end
})
end
end

0 comments on commit 3621680

Please sign in to comment.