KotlinBukkitAPI
KotlinBukkitAPI copied to clipboard
Menu update
Upgrade menu module
Hey @Hai-tun, this for the PR, but, you can explain the changes that this PR does?
menu : Separate cancelOnClick into cancelOnTopClick(defalut = true) and cancelOnBottomClick(defalut = false)
(The bottom inventory will be clickable and moveable)
top drag : Changed from canceling the event to returning the illegally dragged item back to the cursor
bottom inventory double click : Add anti illegal bottom inventory shift click
bottom inventory shift click : Add anti illegal bottom inventory shift click
@DevSrSouza Add an executor priority fix
@DevSrSouza Plz, review code and merge.
i think it would be better if you kept the cancelOnClick parameter of the menu func, for reasons of backward compatibility.
It seems to be able to improve compatibility by that way... but in fact, the signature of the method has changed due to the addition of parameters. So even if cancelOnClick is not modified, the bytecode still unable to be compatible.