allow shift-punch for airbrush form

This commit is contained in:
Vanessa Dannenberg 2018-08-26 08:28:56 -04:00
parent fa71e3166c
commit e13d514ff7
1 changed files with 5 additions and 1 deletions

View File

@ -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)