runenergy: Don't save the value and return

This commit is contained in:
sdburns1998
2019-07-07 18:33:39 +02:00
parent 63f081e8a8
commit 71a1bf765d

View File

@@ -335,7 +335,6 @@ public class RunEnergyPlugin extends Plugin
}
// Calculate the number of seconds left
final double secondsLeft = (100 - client.getEnergy()) / recoverRate;
return (int) secondsLeft;
return (int) ((100 - client.getEnergy()) / recoverRate);
}
}