From 9e49bc6167e9ee9900fdd205026c3143687ed33e Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Sat, 25 May 2019 04:52:36 -0400 Subject: update homedecor, basic_materials, led_marquee, signs_lib, unifieddyes removed the inspector mod --- unifieddyes/init.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'unifieddyes') 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 -- cgit v1.2.3