mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
Made DBC rendering handled by the DBC addon, attached tail to body properly in ModelMPM.
This commit is contained in:
1 parent
65150c11a1
commit
bdcd2bdf24
2 files changed
+11
-8
No files matched your search
@@ -53,9 +53,15 @@ public class AnimationMixinFunctions {
|
||||
return false;
|
||||
}
|
||||
|
||||
if(DBCAddon.IsAvailable() && ClientEventHandler.renderingPlayer != null){
|
||||
return DBCClient.Instance.applyRenderModel(modelRenderer);
|
||||
} else if (!DBCAddon.IsAvailable() && ClientEventHandler.renderingPlayer != null) {
|
||||
if (DBCAddon.IsAvailable()) {
|
||||
if (ClientEventHandler.renderingPlayer != null) {
|
||||
return DBCClient.Instance.applyRenderModel(modelRenderer);
|
||||
} else if (DBCClient.Instance.applyRenderModel(modelRenderer)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (ClientEventHandler.renderingPlayer != null) {
|
||||
ClientEventHandler.playerModel = (modelRenderer).baseModel;
|
||||
if (ClientCacheHandler.playerAnimations.containsKey(ClientEventHandler.renderingPlayer.getUniqueID())) {
|
||||
AnimationData animData = ClientCacheHandler.playerAnimations.get(ClientEventHandler.renderingPlayer.getUniqueID());
|
||||
|
||||
@@ -185,8 +185,7 @@ public class ModelMPM extends ModelNPCMale {
|
||||
this.bipedHead.addChild(horns = new ModelHorns(this));
|
||||
|
||||
// Completed
|
||||
tail = new ModelTail(this);
|
||||
|
||||
this.bipedBody.addChild(tail = new ModelTail(this));
|
||||
this.bipedBody.addChild(wings = new ModelWings(this));
|
||||
this.bipedBody.addChild(fin = new ModelFin(this));
|
||||
|
||||
@@ -303,8 +302,7 @@ public class ModelMPM extends ModelNPCMale {
|
||||
this.bipedHead.addChild(horns = new ModelHorns(this));
|
||||
|
||||
// Completed
|
||||
tail = new ModelTail(this);
|
||||
|
||||
this.bipedBody.addChild(tail = new ModelTail(this));
|
||||
this.bipedBody.addChild(wings = new ModelWings(this));
|
||||
this.bipedBody.addChild(fin = new ModelFin(this));
|
||||
|
||||
@@ -920,7 +918,6 @@ public class ModelMPM extends ModelNPCMale {
|
||||
this.legs.render(f);
|
||||
if (!isArmor) {
|
||||
this.tail.setConfig(legs, 0, y, z);
|
||||
this.tail.render(f);
|
||||
}
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user