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

Commit

Permalink
Stream: fix offline prefix stream
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Jul 28, 2023
1 parent fb09913 commit a3fccd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/net/flectone/custom/FPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,9 @@ public boolean isStreaming() {

public void setStreaming(boolean streaming) {
this.isStreaming = streaming;
this.streamPrefix = Main.locale.getFormatString(getStreamFormatPrefix(), getPlayer());

String streamFormatPrefix = getStreamFormatPrefix();
this.streamPrefix = streamFormatPrefix.isEmpty() ? "" : Main.locale.getFormatString(streamFormatPrefix, getPlayer());
}

private String getStreamFormatPrefix() {
Expand Down

0 comments on commit a3fccd1

Please sign in to comment.