mirror of
https://github.com/GTNewHorizons/GTNHLib.git
synced 2026-11-08 12:34:52 +00:00
Only block old blockstates (#449)
This commit is contained in:
1 parent
2e2b469b40
commit
e729fc64d4
1 file changed
+2
-2
+2
-2
@@ -114,9 +114,9 @@ public abstract class MixinFileResourcePack extends AbstractResourcePack impleme
|
||||
var pathParts = resource.split("/");
|
||||
if (pathParts.length < 4) return false; // too short to be a blockstate or model
|
||||
if (!"assets".equals(pathParts[0])) return false;
|
||||
if (!"blockstates".equals(pathParts[2]) && !"models".equals(pathParts[2])) return false;
|
||||
if (!"blockstates".equals(pathParts[2])) return false;
|
||||
|
||||
// This is a blockstate or model, reject it if it's too old.
|
||||
// This is a blockstate, reject it if it's too old.
|
||||
return packFormat < PACK_FORMAT_MC_13_X;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user