force defined model on activation instead of stored

This commit is contained in:
TenPlus1 2019-04-02 08:41:09 +01:00
parent 26a520e214
commit 55dda6da83

View File

@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = {
mod = "redo",
version = "20190124",
version = "20190402",
intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {},
}
@ -2893,6 +2893,12 @@ function mob_class:mob_activate(staticdata, def, dtime)
end
end
-- force current model into mob
self.mesh = def.mesh
self.base_mesh = def.mesh
self.collisionbox = def.collisionbox
self.selectionbox = def.selectionbox
-- select random texture, set model and size
if not self.base_texture then