Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Fixing crash
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkKronicle committed Nov 15, 2021
1 parent 7816eed commit dc55b98
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public boolean process(FluidText text, @Nullable FluidText unfiltered) {
.width(width)
.creationTick(MinecraftClient.getInstance().inGameHud.getTicks())
.time(time)
.background(backcolor)
.backgroundColor(backcolor)
.build();
if (ChatHistory.getInstance().add(line)) {
sendToHud(line.getDisplayText());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,6 @@ public String toString() {
}
}

@Deprecated
@Builder
protected ChatMessage(
int creationTick,
Text displayText,
Text originalText,
int id,
LocalTime time,
ColorUtil.SimpleColor background,
int width,
MessageOwner owner) {
this(creationTick, displayText, originalText, id, time, background.toColor(), width, owner);
}

@Builder
protected ChatMessage(
int creationTick,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void load() {
}

// Use night-config toml parsing
FileConfig config = TomlUtil.loadFileWithDefaults(file, "config.toml");
FileConfig config = TomlUtil.loadFileWithDefaults(file, "colors.toml");

// Assign colors
Optional<Config> customColors = config.getOptional("color");
Expand Down

0 comments on commit dc55b98

Please sign in to comment.