From e13d514ff752a39cdd15376db89a3ca9ab68770b Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Sun, 26 Aug 2018 08:28:56 -0400 Subject: allow shift-punch for airbrush form --- init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 4ebcded..90d9fa6 100644 --- a/init.lua +++ b/init.lua @@ -644,7 +644,11 @@ function unifieddyes.on_airbrush(itemstack, player, pointed_thing) end local pos = minetest.get_pointed_thing_position(pointed_thing) - if not pos then unifieddyes.show_airbrush_form(player) return end + if not pos or player:get_player_control().sneak then + unifieddyes.show_airbrush_form(player) + return + end + if not painting_with then return end local node = minetest.get_node(pos) -- cgit v1.2.3