Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny-Hui committed Apr 14, 2024
1 parent 88708df commit 24acda3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* See <a href="https://github.com/Noaaan/MythicMetals/blob/1.20/src/main/java/nourl/mythicmetals/mixin/DefaultedRegistryMixin.java">here</a>
* And <a href="https://github.com/orgs/FabricMC/discussions/2361">https://github.com/orgs/FabricMC/discussions/2361</a>
*/

#if MC_VERSION < "11904"
@Mixin(DefaultedRegistry.class)
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,20 @@ public int getTextColor() {
public boolean isRowHidden(int row) {
return rowHidden.length - 1 < row ? false : rowHidden[row];
}

public boolean getShowWeather() {
return showWeather;
}

public boolean getShowClock() {
return showClock;
}

public boolean getTopPadding() {
return topPadding;
}

public MutableJsonPIDSPreset toMutable() {
return new MutableJsonPIDSPreset(getId(), getName(), background, fontId, textOverflowMode, rowHidden, showClock, showWeather, topPadding, textColor);
}
}

0 comments on commit 24acda3

Please sign in to comment.