mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-14 06:10:20 +01:00
allow shift-punch for airbrush form
This commit is contained in:
parent
fa71e3166c
commit
e13d514ff7
6
init.lua
6
init.lua
|
@ -644,7 +644,11 @@ function unifieddyes.on_airbrush(itemstack, player, pointed_thing)
|
||||||
end
|
end
|
||||||
|
|
||||||
local pos = minetest.get_pointed_thing_position(pointed_thing)
|
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
|
if not painting_with then return end
|
||||||
|
|
||||||
local node = minetest.get_node(pos)
|
local node = minetest.get_node(pos)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user