Interpolate sky-chest lid angle (like vanilla does)

for smoother opening and closing.
This commit is contained in:
Sebastian Hartte
2020-06-14 00:52:36 +02:00
parent a620245bbe
commit 3989dbd860
@@ -186,9 +186,8 @@ public class TileSkyChest extends AEBaseInvTile implements ITickableTileEntity,
}
@Override
public float getLidAngle(float v) {
// FIXME: Do it nicely as the chest does it (interpolation, baby!)
return lidAngle;
public float getLidAngle(float partialTicks) {
return MathHelper.lerp(partialTicks, this.prevLidAngle, this.lidAngle);
}
}