mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 10:35:16 +01:00
Fix settings.json and markers.json not being written with the correct charset
This commit is contained in:
parent
1b2dc45b4b
commit
16c4b281ef
@ -195,7 +195,7 @@ public synchronized void resetTextureGallery() {
|
||||
private void saveMapSettings() {
|
||||
try (
|
||||
OutputStream out = storage.writeMeta(id, META_FILE_SETTINGS);
|
||||
Writer writer = new OutputStreamWriter(out)
|
||||
Writer writer = new OutputStreamWriter(out, StandardCharsets.UTF_8)
|
||||
) {
|
||||
ResourcesGson.addAdapter(new GsonBuilder())
|
||||
.registerTypeAdapter(BmMap.class, new MapSettingsSerializer())
|
||||
@ -209,7 +209,7 @@ private void saveMapSettings() {
|
||||
public synchronized void saveMarkerState() {
|
||||
try (
|
||||
OutputStream out = storage.writeMeta(id, META_FILE_MARKERS);
|
||||
Writer writer = new OutputStreamWriter(out)
|
||||
Writer writer = new OutputStreamWriter(out, StandardCharsets.UTF_8)
|
||||
) {
|
||||
MarkerGson.INSTANCE.toJson(this.markerSets, writer);
|
||||
} catch (Exception ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user