runenergy: Don't save the value and return
This commit is contained in:
@@ -335,7 +335,6 @@ public class RunEnergyPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Calculate the number of seconds left
|
// Calculate the number of seconds left
|
||||||
final double secondsLeft = (100 - client.getEnergy()) / recoverRate;
|
return (int) ((100 - client.getEnergy()) / recoverRate);
|
||||||
return (int) secondsLeft;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user