Skip to content

Commit

Permalink
fix: clean up some deprecated icon usage
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Nov 26, 2024
1 parent 324c822 commit 424fa49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ protected class CustomTopPanel extends Panel {
public CustomTopPanel() {
super(ChunkScreen.this);

closeButton = new SimpleButton(this, Component.translatable("gui.close"), Icons.CLOSE,
closeButton = new SimpleButton(this, Component.translatable("gui.close"), Icons.CANCEL,
(btn, mb) -> doCancel())
.setForceButtonSize(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ public Component getTitle() {

private class ClearDeathPointButton extends SimpleButton {
public ClearDeathPointButton(Panel panel) {
super(panel, Component.translatable("ftbchunks.gui.clear_deathpoints"), Icons.CLOSE, (b, m) -> {
super(panel, Component.translatable("ftbchunks.gui.clear_deathpoints"), Icons.CANCEL, (b, m) -> {
if (getWaypointManager().removeIf(wp -> wp.getType() == WaypointType.DEATH)) {
refreshWidgets();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static Optional<ContextMenuItem> makeShareMenu(Player sharingPlayer, Wayp
b -> shareWaypoint(waypoint, ShareWaypointPacket.ShareType.SERVER, List.of())));
}
if (FTBChunksWorldConfig.WAYPOINT_SHARING_PARTY.get()) {
items.add(new ContextMenuItem(Component.translatable("ftbchunks.waypoint.share.party"), Icons.BELL,
items.add(new ContextMenuItem(Component.translatable("ftbchunks.waypoint.share.party"), Icons.FRIENDS_GROUP,
b -> shareWaypoint(waypoint, ShareWaypointPacket.ShareType.PARTY, List.of())));
}
if (FTBChunksWorldConfig.WAYPOINT_SHARING_PLAYERS.get()) {
Expand Down

0 comments on commit 424fa49

Please sign in to comment.