Update from master #1

Merged
FaceDeer merged 53 commits from VoxeLibre/VoxeLibre:master into master 2022-08-29 09:16:33 +02:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit ccfbc7da14 - Show all commits

View File

@ -3467,7 +3467,10 @@ local mob_activate = function(self, staticdata, def, dtime)
def.textures = {def.textures}
end
self.base_texture = def.textures[random(1, #def.textures)]
local c = 1
if #def.textures > c then c = #def.textures end
self.base_texture = def.textures[math.random(c)]
self.base_mesh = def.mesh
self.base_size = self.visual_size
self.base_colbox = self.collisionbox