diff --git a/mods/mobs/api.lua b/mods/mobs/api.lua index bc317ea4..86277369 100755 --- a/mods/mobs/api.lua +++ b/mods/mobs/api.lua @@ -1058,12 +1058,12 @@ end end -- select random texture, set model and size - if not self.base_texture then + --if not self.base_texture then self.base_texture = def.textures[math.random(1, #def.textures)] self.base_mesh = def.mesh - self.base_size = self.visual_size - self.base_colbox = self.collisionbox - end + self.base_size = def.visual_size + self.base_colbox = def.collisionbox + --end -- set texture, model and size local textures = self.base_texture @@ -1125,14 +1125,14 @@ end get_staticdata = function(self) --- remove mob when out of range unless tamed -if mobs.remove and self.remove_ok and not self.tamed then - print ("REMOVED", self.remove_ok, self.name) - self.object:remove() -end -self.remove_ok = true -self.attack = nil -self.following = nil + -- remove mob when out of range unless tamed + if mobs.remove and self.remove_ok and not self.tamed then + print ("REMOVED", self.remove_ok, self.name) + self.object:remove() + end + self.remove_ok = true + self.attack = nil + self.following = nil local tmp = {} for _,stat in pairs(self) do