mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-02-03 12:30:22 +01:00
fix baby mob textures when grown
This commit is contained in:
parent
c4561a2207
commit
e9180febc6
4
api.lua
4
api.lua
@ -14,7 +14,7 @@ local use_vh1 = minetest.get_modpath("visual_harm_1ndicators")
|
|||||||
-- Global
|
-- Global
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20240408",
|
version = "20240425",
|
||||||
translate = S,
|
translate = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||||
node_snow = minetest.registered_aliases["mapgen_snow"]
|
node_snow = minetest.registered_aliases["mapgen_snow"]
|
||||||
@ -1480,9 +1480,9 @@ function mob_class:breed()
|
|||||||
-- using specific child texture (if found)
|
-- using specific child texture (if found)
|
||||||
if self.child_texture then
|
if self.child_texture then
|
||||||
textures = self.child_texture[1]
|
textures = self.child_texture[1]
|
||||||
ent2.mommy_tex = self.base_texture -- when grown
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
ent2.mommy_tex = self.base_texture -- when grown
|
||||||
ent2.object:set_properties({textures = textures})
|
ent2.object:set_properties({textures = textures})
|
||||||
ent2.base_texture = textures
|
ent2.base_texture = textures
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user