Fix crash with some more types of empty paths
This commit is contained in:
parent
0af09b7e27
commit
1602d3352f
|
|
@ -86,6 +86,8 @@ public abstract class ModFileResourcePackMixin {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
String str = path.toString();
|
String str = path.toString();
|
||||||
|
if(str.length() == 0)
|
||||||
|
return false;
|
||||||
for(int i = 0; i < str.length(); i++) {
|
for(int i = 0; i < str.length(); i++) {
|
||||||
if(!ResourceLocation.validPathChar(str.charAt(i))) {
|
if(!ResourceLocation.validPathChar(str.charAt(i))) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user