Add Version Compatibility to PartData

> Fixes MPM Dependency (again)
This commit is contained in:
KAMKEEL committed 2022-06-14 22:26:11 -04:00
1 parent 424b868b48
commit 9e1f19fa53
3 files changed
+9 -11

No files matched your search

@@ -35,6 +35,10 @@ public class ModelPartData {
type = compound.getByte("Type");
color = compound.getInteger("Color");
texture = compound.getString("Texture");
// Disable MPM Dependency for Part Textures
if(VersionCompatibility.ModRev < 19){
texture = texture.replace("moreplayermodels:textures", "customnpcs:textures/parts");
}
playerTexture = compound.getBoolean("PlayerTexture");
location = null;
}