Cancel use item twice
This commit is contained in:
parent
0acda96bff
commit
cd550e634e
|
@ -506,6 +506,8 @@ public class EventListen implements Listener {
|
||||||
if (SUPPORT_STOP_USE_ITEM) {
|
if (SUPPORT_STOP_USE_ITEM) {
|
||||||
try {
|
try {
|
||||||
PlayerAnimation.STOP_USE_ITEM.play(player);
|
PlayerAnimation.STOP_USE_ITEM.play(player);
|
||||||
|
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(),
|
||||||
|
() -> PlayerAnimation.STOP_USE_ITEM.play(player));
|
||||||
} catch (UnsupportedOperationException e) {
|
} catch (UnsupportedOperationException e) {
|
||||||
SUPPORT_STOP_USE_ITEM = false;
|
SUPPORT_STOP_USE_ITEM = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue