Only block old blockstates (#449)

This commit is contained in:
ah-OOG-ah authored and GitHub committed 2026-08-17 03:06:03 +02:00
1 parent 2e2b469b40
commit e729fc64d4
1 file changed
+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;
}
}