mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-01-23 16:30:19 +01:00
Fixed merge mistake leading to crash
This commit is contained in:
parent
53a412f77c
commit
8a86038424
@ -819,7 +819,7 @@ function mobs:register_mob(name, def)
|
|||||||
get_staticdata = function(self)
|
get_staticdata = function(self)
|
||||||
-- select random texture, set model
|
-- select random texture, set model
|
||||||
if not self.base_texture then
|
if not self.base_texture then
|
||||||
self.base_texture = def.textures[math.random(1,#def.textures)]
|
self.base_texture = def.available_textures["texture_"..math.random(1,def.available_textures["total"])]
|
||||||
self.base_mesh = def.mesh
|
self.base_mesh = def.mesh
|
||||||
end
|
end
|
||||||
-- set texture, model and size
|
-- set texture, model and size
|
||||||
|
@ -13,10 +13,11 @@ mobs:register_mob("mobs:bunny", {
|
|||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_bunny.b3d",
|
mesh = "mobs_bunny.b3d",
|
||||||
drawtype = "front",
|
drawtype = "front",
|
||||||
textures = {
|
available_textures = {
|
||||||
{"mobs_bunny_grey.png"},
|
total = 3,
|
||||||
{"mobs_bunny_brown.png"},
|
texture_1 = {"mobs_bunny_grey.png"},
|
||||||
{"mobs_bunny_white.png"},
|
texture_2 = {"mobs_bunny_brown.png"},
|
||||||
|
texture_3 = {"mobs_bunny_white.png"},
|
||||||
},
|
},
|
||||||
-- sounds
|
-- sounds
|
||||||
sounds = {},
|
sounds = {},
|
||||||
|
Loading…
Reference in New Issue
Block a user