Skip to content

Commit

Permalink
fix(forge20): update API usage
Browse files Browse the repository at this point in the history
  • Loading branch information
danorris709 committed Jul 15, 2024
1 parent b9156b2 commit b56c63c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void run(@Sender ServerPlayer player, String[] args) {
}

BingoCardUI.open(sender);
BingoAttribute attribute = sender.getAttribute(BingoAttribute.class);
BingoAttribute attribute = sender.getAttributeNow(BingoAttribute.class);

sender.message(UtilChatColour.colour(
ReforgedBingo.getInstance().getLocale().getRemainingTimeMessage()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void onCommand(@Sender CommandSource sender,
return;
}

BingoAttribute attribute = targetPlayer.getAttribute(BingoAttribute.class);
BingoAttribute attribute = targetPlayer.getAttributeNow(BingoAttribute.class);

if (attribute == null) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void onCommand(@Sender CommandSource sender,
return;
}

BingoAttribute attribute = targetPlayer.getAttribute(BingoAttribute.class);
BingoAttribute attribute = targetPlayer.getAttributeNow(BingoAttribute.class);

if (attribute == null) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void onBingoSlotComplete(CaptureEvent.SuccessfulCapture event) {
return;
}

BingoAttribute attribute = player.getAttribute(BingoAttribute.class);
BingoAttribute attribute = player.getAttributeNow(BingoAttribute.class);

if (attribute == null) {
return;
Expand All @@ -43,7 +43,7 @@ public void onRaidDenCapture(CaptureEvent.SuccessfulRaidCapture event) {
return;
}

BingoAttribute attribute = player.getAttribute(BingoAttribute.class);
BingoAttribute attribute = player.getAttributeNow(BingoAttribute.class);

if (attribute == null) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void run() {
continue;
}

BingoAttribute bingoAttribute = envyPlayer.getAttribute(BingoAttribute.class);
BingoAttribute bingoAttribute = envyPlayer.getAttributeNow(BingoAttribute.class);

if (bingoAttribute == null) {
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static void open(EnvyPlayer<ServerPlayer> player) {
.width(9)
.build();

BingoAttribute attribute = player.getAttribute(BingoAttribute.class);
BingoAttribute attribute = player.getAttributeNow(BingoAttribute.class);

UtilConfigInterface.fillBackground(pane, config.getConfigInterface());

Expand Down

0 comments on commit b56c63c

Please sign in to comment.