From 4614b14985b3e314cb6a14bbcee4128dc5ac1b7e Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Fri, 27 Sep 2024 20:50:19 -0400 Subject: [PATCH] invert it --- .../badbones69/crazycrates/tasks/crates/types/CrateOnTheGo.java | 2 +- .../badbones69/crazycrates/tasks/crates/types/CsgoCrate.java | 2 +- .../badbones69/crazycrates/tasks/crates/types/QuickCrate.java | 2 +- .../crazycrates/tasks/crates/types/RouletteCrate.java | 2 +- .../badbones69/crazycrates/tasks/crates/types/WheelCrate.java | 2 +- .../badbones69/crazycrates/tasks/crates/types/WonderCrate.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) 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);