Fix move between mask and paint

master
Dmitry Kostenko 2021-02-09 00:01:05 +01:00
parent 4c153c6531
commit 3be2779d59
1 changed files with 3 additions and 1 deletions

View File

@ -172,10 +172,12 @@ terraform:register_tool("brush", {
allow_move = function(inv,source,sindex,dest,dindex,count)
if source == "palette" and dest ~= "palette" then
inv:set_stack(dest,dindex, inv:get_stack(source, sindex))
return 0
elseif dest == "palette" and source ~= "palette" then
inv:set_stack(source, sindex, "")
return 0
end
return 0
return count
end
})