Interpolate sky-chest lid angle (like vanilla does)
for smoother opening and closing.
This commit is contained in:
@@ -186,9 +186,8 @@ public class TileSkyChest extends AEBaseInvTile implements ITickableTileEntity,
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getLidAngle(float v) {
|
public float getLidAngle(float partialTicks) {
|
||||||
// FIXME: Do it nicely as the chest does it (interpolation, baby!)
|
return MathHelper.lerp(partialTicks, this.prevLidAngle, this.lidAngle);
|
||||||
return lidAngle;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user