mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 20:45:10 +01:00
parent
69c3a57c76
commit
b845809b58
@ -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 New Issue
Block a user