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;
|
||||
}
|
||||
String str = path.toString();
|
||||
if(str.length() == 0)
|
||||
return false;
|
||||
for(int i = 0; i < str.length(); i++) {
|
||||
if(!ResourceLocation.validPathChar(str.charAt(i))) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user