From 0283bec348c98940f31fea17f8839ae82c590e01 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Tue, 25 Aug 2015 20:31:39 +0200 Subject: [PATCH] fix mobs crash --- mods/mobs/api.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/mobs/api.lua b/mods/mobs/api.lua index a8758bbc..5be38873 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 = def.visual_size - self.base_colbox = def.collisionbox - --end + self.base_size = self.visual_size + self.base_colbox = self.collisionbox + end -- set texture, model and size local textures = self.base_texture