mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-22 15:33:52 +01:00
make sure group.ud_param2_colorable exists before trying to check its value :P
This commit is contained in:
parent
66774213e2
commit
ef7d357e0b
2
init.lua
2
init.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user