mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-22 17:00:26 +01:00
fix warning msg when dye'ing sheep
This commit is contained in:
parent
b8847abe48
commit
389f98e0e3
12
sheep.lua
12
sheep.lua
@ -34,6 +34,18 @@ for _, col in ipairs(all_colours) do
|
|||||||
|
|
||||||
local function horn_texture_sel(horns, gotten, colr)
|
local function horn_texture_sel(horns, gotten, colr)
|
||||||
|
|
||||||
|
-- get override colours hex value from table
|
||||||
|
if colr then
|
||||||
|
|
||||||
|
for _2, col2 in ipairs(all_colours) do
|
||||||
|
|
||||||
|
if col2[1] == colr then
|
||||||
|
colr = col2[3]
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local base_text = "mobs_sheep_base.png"
|
local base_text = "mobs_sheep_base.png"
|
||||||
local wool_shave_text = "mobs_sheep_wool.png"
|
local wool_shave_text = "mobs_sheep_wool.png"
|
||||||
local shav_text = "mobs_sheep_shaved.png"
|
local shav_text = "mobs_sheep_shaved.png"
|
||||||
|
Loading…
Reference in New Issue
Block a user