From 7097ab9f4eff53b4b2022f268471d205a479760c Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Tue, 23 Oct 2018 09:44:13 -0400 Subject: update farmind, homedecor, and unified dyes --- unifieddyes/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'unifieddyes') diff --git a/unifieddyes/init.lua b/unifieddyes/init.lua index 07d6864..27be3f1 100644 --- a/unifieddyes/init.lua +++ b/unifieddyes/init.lua @@ -667,7 +667,10 @@ function unifieddyes.on_airbrush(itemstack, player, pointed_thing) local palette = nil local fdir = 0 - if def.palette == "unifieddyes_palette_extended.png" then + if not def or not def.palette then + minetest.chat_send_player(player_name, "*** That node can't be colored -- it's either undefined or has no palette.") + return + elseif def.palette == "unifieddyes_palette_extended.png" then palette = "extended" elseif def.palette == "unifieddyes_palette_colorwallmounted.png" then palette = "wallmounted" -- cgit v1.2.3