mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-26 00:50:21 +01:00
force defined model on activation instead of stored
This commit is contained in:
parent
26a520e214
commit
55dda6da83
8
api.lua
8
api.lua
@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
|
|||||||
|
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20190124",
|
version = "20190402",
|
||||||
intllib = S,
|
intllib = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||||
}
|
}
|
||||||
@ -2893,6 +2893,12 @@ function mob_class:mob_activate(staticdata, def, dtime)
|
|||||||
end
|
end
|
||||||
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
|
-- select random texture, set model and size
|
||||||
if not self.base_texture then
|
if not self.base_texture then
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user