Cancel use item twice

This commit is contained in:
fullwall 2023-06-18 17:53:47 +08:00
parent 0acda96bff
commit cd550e634e
1 changed files with 2 additions and 0 deletions

View File

@ -506,6 +506,8 @@ public class EventListen implements Listener {
if (SUPPORT_STOP_USE_ITEM) {
try {
PlayerAnimation.STOP_USE_ITEM.play(player);
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(),
() -> PlayerAnimation.STOP_USE_ITEM.play(player));
} catch (UnsupportedOperationException e) {
SUPPORT_STOP_USE_ITEM = false;
}