diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2019-05-25 04:52:36 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2019-05-25 04:52:36 -0400 |
commit | 9e49bc6167e9ee9900fdd205026c3143687ed33e (patch) | |
tree | c2b654b41901b02d6ac6b510ac1166f64e16311c /unifieddyes | |
parent | 952f9f2b2897668224f580b45fd1634254a4d159 (diff) | |
download | dreambuilder_modpack-9e49bc6167e9ee9900fdd205026c3143687ed33e.tar dreambuilder_modpack-9e49bc6167e9ee9900fdd205026c3143687ed33e.tar.gz dreambuilder_modpack-9e49bc6167e9ee9900fdd205026c3143687ed33e.tar.bz2 dreambuilder_modpack-9e49bc6167e9ee9900fdd205026c3143687ed33e.tar.xz dreambuilder_modpack-9e49bc6167e9ee9900fdd205026c3143687ed33e.zip |
update homedecor, basic_materials, led_marquee, signs_lib, unifieddyes
removed the inspector mod
Diffstat (limited to 'unifieddyes')
-rw-r--r-- | unifieddyes/init.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/unifieddyes/init.lua b/unifieddyes/init.lua index b692810..3f0f827 100644 --- a/unifieddyes/init.lua +++ b/unifieddyes/init.lua @@ -668,10 +668,12 @@ function unifieddyes.on_airbrush(itemstack, player, pointed_thing) minetest.chat_send_player(player_name, "*** No node selected") else local hexcolor = unifieddyes.get_color_from_dye_name(painting_with) - local r = tonumber(string.sub(hexcolor,1,2),16) - local g = tonumber(string.sub(hexcolor,3,4),16) - local b = tonumber(string.sub(hexcolor,5,6),16) - player:set_sky({r=r,g=g,b=b,a=255},"plain") + if hexcolor then + local r = tonumber(string.sub(hexcolor,1,2),16) + local g = tonumber(string.sub(hexcolor,3,4),16) + local b = tonumber(string.sub(hexcolor,5,6),16) + player:set_sky({r=r,g=g,b=b,a=255},"plain") + end end return end |