diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-03-14 02:21:47 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-03-14 02:21:47 -0400 |
commit | b9beea1673c9948f07646f31d4ab5d53d6e56184 (patch) | |
tree | 80296cdcaa7c32f39c827477fd55590eb71e04cf /unifieddyes | |
parent | 6885943d0491db83268f8bb4743bfd82ed725ea2 (diff) | |
download | dreambuilder_modpack-b9beea1673c9948f07646f31d4ab5d53d6e56184.tar dreambuilder_modpack-b9beea1673c9948f07646f31d4ab5d53d6e56184.tar.gz dreambuilder_modpack-b9beea1673c9948f07646f31d4ab5d53d6e56184.tar.bz2 dreambuilder_modpack-b9beea1673c9948f07646f31d4ab5d53d6e56184.tar.xz dreambuilder_modpack-b9beea1673c9948f07646f31d4ab5d53d6e56184.zip |
update blocs, bobblocks, coloredwood, technic, homedecor, plasticbox,
solidcolor, stainedglass, unifiedbricks, and unified dyes
Diffstat (limited to 'unifieddyes')
-rw-r--r-- | unifieddyes/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/unifieddyes/init.lua b/unifieddyes/init.lua index a713c45..cfce06b 100644 --- a/unifieddyes/init.lua +++ b/unifieddyes/init.lua @@ -473,6 +473,16 @@ function unifieddyes.getpaletteidx(color, palette_type) end end +-- if your node was once 89-color and uses an LBM to convert to the 256-color palette, +-- call this in that node def's on_construct: + +function unifieddyes.on_construct(pos) + local meta = minetest.get_meta(pos) + meta:set_string("palette", "ext") +end + +-- call this in your node's after_dig_node to get the last-used dye back. + function unifieddyes.after_dig_node(pos, oldnode, oldmetadata, digger) local prevdye |