The great Escape

- Adresses #1324
This commit is contained in:
simibubi 2021-04-03 19:50:42 +02:00
parent 69c3a57c76
commit b845809b58

View File

@ -40,11 +40,7 @@ public class FilesHelper {
} }
public static String slug(String name) { public static String slug(String name) {
return Lang.asId(name) return Lang.asId(name).replaceAll("\\W+", "_");
.replace(' ', '_')
.replace('!', '_')
.replace(':', '_')
.replace('?', '_');
} }
public static boolean saveTagCompoundAsJson(CompoundNBT compound, String path) { public static boolean saveTagCompoundAsJson(CompoundNBT compound, String path) {