Skip to content

Commit

Permalink
fix: no save of umlauts
Browse files Browse the repository at this point in the history
  • Loading branch information
Uhutown committed Apr 30, 2024
1 parent 97630b6 commit 4cbe492
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.troblecodings.signals.handler;

import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import java.nio.file.Path;

Expand Down Expand Up @@ -31,12 +30,7 @@ public synchronized String getString(final BlockPos pos) {
public synchronized String getString(final SignalStatePosV2 pos) {
if (pos == null)
return "";
try {
return new String(read(pos).array(), "UTF-8").trim();
} catch (final UnsupportedEncodingException e) {
e.printStackTrace();
}
return "";
return new String(read(pos).array()).trim();
}

}

0 comments on commit 4cbe492

Please sign in to comment.