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
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user