From a499ab09eb6579a502d99158294bcdcb9ae504ee Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 11 Apr 2021 01:11:50 +0200 Subject: [PATCH] Fix RegionListener with Windows --- .../src/de/steamwar/bausystem/world/RegionListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/RegionListener.java b/BauSystem_Main/src/de/steamwar/bausystem/world/RegionListener.java index 8aa4aa4..191a591 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/RegionListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/RegionListener.java @@ -91,7 +91,7 @@ public class RegionListener implements Listener { Sign sign = (Sign) event.getClickedBlock().getState(); String[] lines = sign.getLines(); for (int i = 0; i < lines.length; i++) { - sign.setLine(i, lines[i].replace('§', '&')); + sign.setLine(i, lines[i].replace('\u00A7' /* WINDOWS \u00A7 -> § */, '&')); } sign.update();