mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 18:45:29 +01:00
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) {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user