From 36216804bd3da36ddd0fa4ff309bec9b5f1e52a7 Mon Sep 17 00:00:00 2001 From: Extex101 <33675971+Extex101@users.noreply.github.com> Date: Wed, 9 Dec 2020 14:15:46 -0800 Subject: [PATCH] Add missing variable --- init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index bd2c804..5541d1d 100644 --- a/init.lua +++ b/init.lua @@ -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 }) @@ -170,4 +171,4 @@ if biker.signs then end) end }) -end \ No newline at end of file +end