Delegating this to original developers. Texture offsets are final, so at least half of the wings code has to be adjusted to get actual metadata about bags and stuff.

This commit is contained in:
PolyacovYury 2018-06-04 04:27:29 +03:00
parent b6242902f6
commit 951cd84f20
5 changed files with 9 additions and 14 deletions

View file

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Tue Apr 10 14:03:42 CAT 2018
build.number=497
#Mon Jun 04 04:49:51 MSK 2018
build.number=498

View file

@ -51,13 +51,11 @@ public class ModelWing {
}
public void render(boolean hasBags, boolean extend, float scale) {
public void render(boolean extend, float scale) {
extended.rotationPointX = (mirror ? -1 : 1) * LEFT_WING_EXT_RP_X;
extended.rotationPointY = LEFT_WING_EXT_RP_Y + (hasBags ? -1f : 0f);
extended.rotationPointZ = LEFT_WING_EXT_RP_Z + (hasBags ? 1f : 0f);
extended.rotateAngleY = 3;
extended.rotationPointY = LEFT_WING_EXT_RP_Y;
folded.offset((hasBags ? (mirror ? -0.5f : 0.5f) : 0f), (hasBags ? -0.5f : 0f), (hasBags ? -1.5f : 0f));
extended.rotateAngleY = 3;
if (extend) {
extended.render(scale);
} else {

View file

@ -68,11 +68,10 @@ public class PegasusWings implements IModelPart {
@Override
public void render(float scale) {
AbstractPonyModel model = ((AbstractPonyModel) pegasus);
boolean hasBags = model.metadata.hasBags();
if (!hasBags || model.textureHeight == 64) {
if (!model.metadata.hasBags() || model.textureHeight == 64) {
boolean standing = pegasus.wingsAreOpen();
leftWing.render(hasBags, standing, scale);
rightWing.render(hasBags, standing, scale);
leftWing.render(standing, scale);
rightWing.render(standing, scale);
}
}
}

View file

@ -3,8 +3,6 @@ package com.minelittlepony.model.components;
import com.minelittlepony.model.AbstractPonyModel;
import com.minelittlepony.model.capabilities.IModelPart;
import com.minelittlepony.render.plane.PlaneRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.util.math.MathHelper;
import static com.minelittlepony.model.PonyModelConstants.*;

View file

@ -37,7 +37,7 @@ public interface IPonyData extends IMetadataSection {
boolean hasMagic();
/**
* Returns true if and only if this metadata represents a pony that has bags.
* Returns true if and only if this metadata represents a pony that has accessories.
*/
boolean hasAccessory();