Skip to content

Commit

Permalink
invert it
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Sep 28, 2024
1 parent f7744b1 commit 4614b14
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4614b14

Please sign in to comment.