diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-26 22:27:43 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-08-26 22:27:43 -0400 |
commit | 6ecb115465168d701bd84f21307432c3846e5073 (patch) | |
tree | f964ac9b5b75ded82caa73e1dafb22fb94485303 | |
parent | 4dde37c191da7d177cab8d1b3b275cb36f751ba9 (diff) | |
download | unifieddyes-6ecb115465168d701bd84f21307432c3846e5073.tar unifieddyes-6ecb115465168d701bd84f21307432c3846e5073.tar.gz unifieddyes-6ecb115465168d701bd84f21307432c3846e5073.tar.bz2 unifieddyes-6ecb115465168d701bd84f21307432c3846e5073.tar.xz unifieddyes-6ecb115465168d701bd84f21307432c3846e5073.zip |
warn the user to open the color selector
instead of crashing if they have no color set :-)
-rw-r--r-- | init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -655,6 +655,14 @@ function unifieddyes.on_airbrush(itemstack, player, pointed_thing) return end + if not painting_with then + minetest.chat_send_player(player_name, "*** You need to set a color first.") + minetest.chat_send_player(player_name, "*** Right-click any random node to open the color selector,") + minetest.chat_send_player(player_name, "*** or shift+right-click a colorized node to use its color.") + minetest.chat_send_player(player_name, "*** Be sure to click \"Accept\", or the color you select will be ignored.") + return + end + if not def.palette then minetest.chat_send_player(player_name, "That node can't be colored.") return |