1
0
mirror of https://github.com/mt-mods/unifieddyes.git synced 2024-11-13 05:40:18 +01:00

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

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)