From 1fddd261e8d6ddfdc595bf8e4b6769096608636c Mon Sep 17 00:00:00 2001 From: 0xTas Date: Mon, 5 Aug 2024 17:50:56 -0700 Subject: [PATCH] SignHistorian - No longer tries to use the illegal character ':' in sign filenames. --- src/main/java/dev/stardust/modules/SignHistorian.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/stardust/modules/SignHistorian.java b/src/main/java/dev/stardust/modules/SignHistorian.java index 1168447..4f08629 100644 --- a/src/main/java/dev/stardust/modules/SignHistorian.java +++ b/src/main/java/dev/stardust/modules/SignHistorian.java @@ -338,7 +338,7 @@ private void saveSignToFile(SignBlockEntity sign, BlockState state) { ServerInfo server = mc.getNetworkHandler().getServerInfo(); if (server == null) return; - String address = server.address; + String address = server.address.replace(":", "_"); String dimKey; if (currentDim != null) dimKey = currentDim.getValue().toString().replace("minecraft:", ""); else dimKey = mc.world.getRegistryKey().getValue().toString().replace("minecraft:", "");