Rendering is super annoying, I agree >.>

This commit is contained in:
Sollace 2018-04-30 11:49:29 +02:00
parent ab8ab99bd5
commit d1724fa307
2 changed files with 13 additions and 10 deletions

View file

@ -71,6 +71,9 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
@Override
public void setRotationAngles(float move, float swing, float age, float headYaw, float headPitch, float scale, Entity entity) {
this.boxList.clear();
this.init(0, 0);
super.setRotationAngles(move, swing, age, headYaw, headPitch, scale, entity);
float headRotateAngleY = isSleeping ? 1.4f : headYaw / 57.29578F;
@ -490,8 +493,8 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
.tex(36, 16) .addBackPlane(-4, -4, 8, 8, 4, stretch)
.addBackPlane(-4, 0, 8, 8, 4, stretch)
.addBottomPlane(-4, 4, 4, 8, 4, stretch)
.flipZ().tex(24, 0).addWestPlane(-4, -4, -4, 8, 8, stretch)
.tex(32, 20).addTopPlane(-4, -4, -4, 8, 12, stretch)
.flipZ().tex(32, 20).addTopPlane(-4, -4, -4, 8, 12, stretch)
.tex(24, 0).addWestPlane(-4, -4, -4, 8, 8, stretch)
.tex(4, 0) .addWestPlane(-4, -4, 4, 8, 4, stretch)
// Tail stub
.child(0)

View file

@ -58,7 +58,7 @@ public class ModelPlane extends Box<PlaneRenderer> {
quad = quad(textureX, d, textureY, h, wds, wdn, wun, wus);
}
if (face == Face.UP) {
quad = quad(textureX, w, textureY, h, edn, wdn, wds, eds);
quad = quad(textureX, w, textureY, d, edn, wdn, wds, eds);
}
if (face == Face.DOWN) {
quad = quad(textureX, w, textureY, d, eus, wus, wun, eun);