mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-01-16 08:05:53 +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) {
|
||||
return Lang.asId(name)
|
||||
.replace(' ', '_')
|
||||
.replace('!', '_')
|
||||
.replace(':', '_')
|
||||
.replace('?', '_');
|
||||
return Lang.asId(name).replaceAll("\\W+", "_");
|
||||
}
|
||||
|
||||
public static boolean saveTagCompoundAsJson(CompoundNBT compound, String path) {
|
||||
|
|
Loading…
Reference in a new issue