Skip to content

Commit

Permalink
SignHistorian - No longer tries to use the illegal character ':' in s…
Browse files Browse the repository at this point in the history
…ign filenames.
  • Loading branch information
0xTas committed Aug 6, 2024
1 parent 50d72b1 commit 1fddd26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/stardust/modules/SignHistorian.java
Original file line number Diff line number Diff line change
Expand Up @@ -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:", "");
Expand Down

0 comments on commit 1fddd26

Please sign in to comment.