1
0
mirror of https://github.com/mt-mods/unifieddyes.git synced 2024-12-24 17:50:29 +01:00

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

View File

@ -649,7 +649,7 @@ function unifieddyes.on_airbrush(itemstack, player, pointed_thing)
return return
end 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.") minetest.chat_send_player(player_name, "*** That node can't be colored.")
return return
end end