mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
fix mobs losing their textures.
This commit is contained in:
parent
b66e2a117f
commit
5533ec7bac
1 changed files with 4 additions and 2 deletions
|
@ -135,8 +135,9 @@ function mob_class:mob_activate(staticdata, def, dtime)
|
|||
end
|
||||
end
|
||||
|
||||
if not self.base_texture then
|
||||
|
||||
-- Added from PR comments
|
||||
--if not self.base_texture then
|
||||
if not self.base_texture or (def.textures and table.indexof(def.textures, self.base_texture) == -1) then
|
||||
-- compatiblity with old simple mobs textures
|
||||
if type(def.textures[1]) == "string" then
|
||||
def.textures = {def.textures}
|
||||
|
@ -151,6 +152,7 @@ function mob_class:mob_activate(staticdata, def, dtime)
|
|||
self.base_colbox = self.collisionbox
|
||||
self.base_selbox = self.selectionbox
|
||||
end
|
||||
-- End Added PR Comment Code.
|
||||
|
||||
if not self.base_selbox then
|
||||
self.base_selbox = self.selectionbox or self.base_colbox
|
||||
|
|
Loading…
Reference in a new issue