remove tick delay on listing create

Took 2 minutes
This commit is contained in:
Kiran Hart 2023-08-07 18:49:19 -04:00
parent 9fb46eaa18
commit 56cef59c37
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -378,9 +378,9 @@ public final class CommandSell extends AbstractCommand {
}, Settings.INTERNAL_CREATE_DELAY.getInt());
}));
} else {
Bukkit.getScheduler().runTaskLaterAsynchronously(AuctionHouse.getInstance(), () -> {
// Bukkit.getScheduler().runTaskLaterAsynchronously(AuctionHouse.getInstance(), () -> {
if (auctionPlayer.getPlayer() == null || !auctionPlayer.getPlayer().isOnline()) {
return;
return ReturnType.FAILURE;
}
player.getInventory().setItemInHand(XMaterial.AIR.parseItem());
@ -401,7 +401,7 @@ public final class CommandSell extends AbstractCommand {
AuctionHouse.newChain().sync(player::closeInventory).execute();
});
}, Settings.INTERNAL_CREATE_DELAY.getInt());
// }, Settings.INTERNAL_CREATE_DELAY.getInt());
}