mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-23 18:55:25 +01:00
Fix indentation style and note invalid approach in EconLandRewardTask.
This commit is contained in:
parent
d2e261a275
commit
3ef3492c68
@ -4,8 +4,8 @@ import com.massivecraft.factions.ConfServer;
|
||||
import com.massivecraft.factions.FactionColl;
|
||||
import com.massivecraft.factions.Factions;
|
||||
|
||||
public class EconLandRewardTask implements Runnable {
|
||||
|
||||
public class EconLandRewardTask implements Runnable
|
||||
{
|
||||
double rate;
|
||||
|
||||
public EconLandRewardTask()
|
||||
@ -17,9 +17,15 @@ public class EconLandRewardTask implements Runnable {
|
||||
public void run()
|
||||
{
|
||||
FactionColl.i.econLandRewardRoutine();
|
||||
|
||||
// TODO: This technique is TPS dependent and wrong.
|
||||
// Instead of restarting a TPS dependent task the task should poll every once in a while for the system millis.
|
||||
// With such a setup the need for restarts are gone.
|
||||
|
||||
// maybe setting has been changed? if so, restart task at new rate
|
||||
if (this.rate != ConfServer.econLandRewardTaskRunsEveryXMinutes)
|
||||
{
|
||||
Factions.get().startEconLandRewardTask(true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user