Add Model Biped check for Dragon Block Animations

This commit is contained in:
Kam committed 2024-03-26 16:35:33 -04:00
1 parent b0c7322ac2
commit 89f97c35df
1 file changed
+3
@@ -271,6 +271,9 @@ public abstract class MixinModelRenderer {
try {
Class<?> ModelBipedBody = Class.forName("JinRyuu.JRMCore.entity.ModelBipedBody");
Object model = renderer.baseModel;
if(!(model instanceof ModelBiped))
return null;
Field[] declared;
if (ClientEventHandler.declaredFieldCache.containsKey(ModelBipedBody)) {
declared = ClientEventHandler.declaredFieldCache.get(ModelBipedBody);