mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-05 10:00:26 +01:00
Try to fix [mobs] API-related crashes
This commit is contained in:
parent
8a82fb2bb5
commit
fd097bf955
|
@ -1058,12 +1058,10 @@ end
|
|||
end
|
||||
|
||||
-- select random texture, set model and size
|
||||
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_texture = self.base_texture or def.textures[math.random(1, #def.textures)]
|
||||
self.base_mesh = self.base_mesh or def.mesh
|
||||
self.base_size = self.base_size or self.visual_size
|
||||
self.base_colbox = self.base_colbox or self.collisionbox
|
||||
|
||||
-- set texture, model and size
|
||||
local textures = self.base_texture
|
||||
|
|
Loading…
Reference in New Issue
Block a user