mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-16 16:10:58 +01:00
parent
69c3a57c76
commit
b845809b58
1 changed files with 1 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue