diff --git a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/CrateOnTheGo.java b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/CrateOnTheGo.java index 500cb0931..63059217c 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/CrateOnTheGo.java +++ b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/CrateOnTheGo.java @@ -43,7 +43,7 @@ public void open(@NotNull final KeyType type, final boolean checkHand, final boo final Prize prize = crate.pickPrize(player); - if (crate.isCyclePrize() && PrizeManager.isCapped(crate, player)) { // re-open this menu + if (crate.isCyclePrize() && !PrizeManager.isCapped(crate, player)) { // re-open this menu new CrateSpinMenu(player, new GuiSettings(crate, prize, Files.respin_gui.getConfiguration())).open(); this.crateManager.removePlayerFromOpeningList(player); diff --git a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/CsgoCrate.java b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/CsgoCrate.java index a93a2c8b9..1f3b3b66b 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/CsgoCrate.java +++ b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/CsgoCrate.java @@ -113,7 +113,7 @@ public void run() { if (item != null) { final Prize prize = crate.getPrize(item); - if (crate.isCyclePrize() && PrizeManager.isCapped(crate, player)) { // re-open this menu + if (crate.isCyclePrize() && !PrizeManager.isCapped(crate, player)) { // re-open this menu new CrateSpinMenu(player, new GuiSettings(crate, prize, Files.respin_gui.getConfiguration())).open(); return; diff --git a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/QuickCrate.java b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/QuickCrate.java index 39c4177e9..97962c406 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/QuickCrate.java +++ b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/QuickCrate.java @@ -128,7 +128,7 @@ public void open(@NotNull final KeyType type, final boolean checkHand, final boo Prize prize = crate.pickPrize(player, getLocation().clone().add(.5, 1.3, .5)); - if (crate.isCyclePrize() && PrizeManager.isCapped(crate, player)) { // re-open this menu + if (crate.isCyclePrize() && !PrizeManager.isCapped(crate, player)) { // re-open this menu new CrateSpinMenu(player, new GuiSettings(crate, prize, Files.respin_gui.getConfiguration())).open(); this.crateManager.removePlayerFromOpeningList(player); diff --git a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/RouletteCrate.java b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/RouletteCrate.java index 5a28aae34..bed0b93cd 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/RouletteCrate.java +++ b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/RouletteCrate.java @@ -104,7 +104,7 @@ public void run() { if (item != null) { Prize prize = crate.getPrize(item); - if (crate.isCyclePrize() && PrizeManager.isCapped(crate, player)) { // re-open this menu + if (crate.isCyclePrize() && !PrizeManager.isCapped(crate, player)) { // re-open this menu new CrateSpinMenu(player, new GuiSettings(crate, prize, Files.respin_gui.getConfiguration())).open(); crateManager.removePlayerFromOpeningList(player); diff --git a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/WheelCrate.java b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/WheelCrate.java index 1cd60d5ef..961c5ff65 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/WheelCrate.java +++ b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/WheelCrate.java @@ -119,7 +119,7 @@ public void run() { prize = crate.getPrize(rewards.get(this.slots.get(this.what))); } - if (crate.isCyclePrize() && PrizeManager.isCapped(crate, player)) { // re-open this menu + if (crate.isCyclePrize() && !PrizeManager.isCapped(crate, player)) { // re-open this menu new CrateSpinMenu(player, new GuiSettings(crate, prize, Files.respin_gui.getConfiguration())).open(); return; diff --git a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/WonderCrate.java b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/WonderCrate.java index 7fc82de1d..3ad023650 100644 --- a/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/WonderCrate.java +++ b/paper/src/main/java/com/badbones69/crazycrates/tasks/crates/types/WonderCrate.java @@ -120,7 +120,7 @@ public void run() { getPlayer().closeInventory(InventoryCloseEvent.Reason.UNLOADED); - if (crate.isCyclePrize() && PrizeManager.isCapped(crate, player)) { // re-open this menu + if (crate.isCyclePrize() && !PrizeManager.isCapped(crate, player)) { // re-open this menu new CrateSpinMenu(player, new GuiSettings(crate, prize, Files.respin_gui.getConfiguration())).open(); crateManager.removePlayerFromOpeningList(player);