summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-25 16:45:57 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-02-25 16:45:57 -0500
commit46a55946ef2b940109f84a9c111ec340f9409ccd (patch)
tree815b9283e7ee73d5e8c98dff6b0d30122233a753
parentdcf9bf648fb4645743d3a64c8f6391517ae415e5 (diff)
downloadunifieddyes-46a55946ef2b940109f84a9c111ec340f9409ccd.tar
unifieddyes-46a55946ef2b940109f84a9c111ec340f9409ccd.tar.gz
unifieddyes-46a55946ef2b940109f84a9c111ec340f9409ccd.tar.bz2
unifieddyes-46a55946ef2b940109f84a9c111ec340f9409ccd.tar.xz
unifieddyes-46a55946ef2b940109f84a9c111ec340f9409ccd.zip
define on_use for default dyes
(forgot to include the overrides)
-rw-r--r--init.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index adb03ce..240e5d5 100644
--- a/init.lua
+++ b/init.lua
@@ -709,7 +709,8 @@ for _, h in ipairs(unifieddyes.HUES_EXTENDED) do
local color = string.format("%02x", r2)..string.format("%02x", g2)..string.format("%02x", b2)
if minetest.registered_items["dye:"..val..hue] then
minetest.override_item("dye:"..val..hue, {
- inventory_image = "unifieddyes_dye.png^[colorize:#"..color..":200"
+ inventory_image = "unifieddyes_dye.png^[colorize:#"..color..":200",
+ on_use = unifieddyes.on_use
})
else
minetest.register_craftitem(":dye:"..val..hue, {
@@ -766,11 +767,13 @@ for y = 1, 14 do -- colors 0 and 15 are black and white, default dyes
end
minetest.override_item("dye:grey", {
- inventory_image = "unifieddyes_dye.png^[colorize:#888888:200"
+ inventory_image = "unifieddyes_dye.png^[colorize:#888888:200",
+ on_use = unifieddyes.on_use
})
minetest.override_item("dye:dark_grey", {
- inventory_image = "unifieddyes_dye.png^[colorize:#444444:200"
+ inventory_image = "unifieddyes_dye.png^[colorize:#444444:200",
+ on_use = unifieddyes.on_use
})
minetest.register_craftitem(":dye:light_grey", {