diff options
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,9 +1,9 @@ --- Mobs Api (1st September 2017) +-- Mobs Api (5th September 2017) mobs = {} mobs.mod = "redo" -mobs.version = "20170901" +mobs.version = "20170905" -- Intllib @@ -2443,6 +2443,11 @@ local mob_activate = function(self, staticdata, def, dtime) self.visual_size = vis_size self.standing_in = "" + -- check existing nametag + if not self.nametag then + self.nametag = def.nametag + end + -- set anything changed above self.object:set_properties(self) set_yaw(self.object, (random(0, 360) - 180) / 180 * pi) |