Update KineticTileEntity.java

This commit is contained in:
MRH0 2021-03-05 00:50:51 +01:00
parent 3336778052
commit 40fef0eaf9

View file

@ -53,8 +53,8 @@ public abstract class KineticTileEntity extends SmartTileEntity
private int flickerTally;
private int networkSize;
private int validationCountdown;
private float lastStressApplied;
private float lastCapacityProvided;
protected float lastStressApplied;
protected float lastCapacityProvided;
public KineticTileEntity(TileEntityType<?> typeIn) {
super(typeIn);
@ -154,7 +154,7 @@ public abstract class KineticTileEntity extends SmartTileEntity
}
public float calculateStressApplied() {
float impact = (float) AllConfigs.SERVER.kinetics.stressValues.getImpactOf(getBlockState().getBlock());
float impact = (float) AllConfigs.SERVER.kinetics.stressValues.getImpactOf(getStressConfigKey());
this.lastStressApplied = impact;
return impact;
}