mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-02 02:11:21 +01:00
BukkitScheduler#runTask() already runs the task on next tick
This commit is contained in:
parent
b9cd266d0e
commit
1f0c9d8a87
@ -111,7 +111,7 @@ public class Soulbound extends EcoEnchant {
|
||||
public void onSoulboundRespawn(@NotNull final PlayerRespawnEvent event) {
|
||||
Player player = event.getPlayer();
|
||||
|
||||
this.getPlugin().getScheduler().runLater(() -> {
|
||||
this.getPlugin().getScheduler().run(() -> {
|
||||
if (!hasSoulboundItems(player)) {
|
||||
return;
|
||||
}
|
||||
@ -138,7 +138,7 @@ public class Soulbound extends EcoEnchant {
|
||||
}
|
||||
|
||||
player.removeMetadata("soulbound-items", this.getPlugin());
|
||||
}, 1);
|
||||
});
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
|
Loading…
Reference in New Issue
Block a user