make sure group.ud_param2_colorable exists before trying to check its value :P

This commit is contained in:
Vanessa Dannenberg 2018-09-12 19:39:40 -04:00
parent 66774213e2
commit ef7d357e0b

@ -649,7 +649,7 @@ function unifieddyes.on_airbrush(itemstack, player, pointed_thing)
return
end
if not (def.groups and def.groups.ud_param2_colorable > 0) then
if not (def.groups and def.groups.ud_param2_colorable and def.groups.ud_param2_colorable > 0) then
minetest.chat_send_player(player_name, "*** That node can't be colored.")
return
end