mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2025-01-23 08:10:20 +01:00
make it game agnostic
This commit is contained in:
parent
62526b9a3b
commit
934ac7180b
@ -87,6 +87,7 @@ for y = 1, 14 do -- colors 0 and 15 are black and white, default dyes
|
||||
end
|
||||
end
|
||||
|
||||
if minetest.get_modpath("dye") then
|
||||
minetest.override_item("dye:grey", {
|
||||
inventory_image = "unifieddyes_dye.png^[colorize:#888888:200",
|
||||
})
|
||||
@ -100,6 +101,7 @@ minetest.register_craftitem(":dye:light_grey", {
|
||||
inventory_image = "unifieddyes_dye.png^[colorize:#cccccc:200",
|
||||
groups = { dye=1, not_in_creative_inventory=1 },
|
||||
})
|
||||
end
|
||||
|
||||
-- build a table of color <-> palette associations to reduce the need for
|
||||
-- realtime lookups with getpaletteidx()
|
||||
|
Loading…
Reference in New Issue
Block a user