Replace Setting<Number> usages with their actual number types

This commit is contained in:
Brady 2018-09-16 15:05:05 -05:00
parent 9937739518
commit 5492dc59e2
No known key found for this signature in database
GPG Key ID: 73A788379A197567

View File

@ -129,7 +129,7 @@ public class Settings {
* <p> * <p>
* Finding the optimal path is worth it, so it's the default. * Finding the optimal path is worth it, so it's the default.
*/ */
public Setting<Double> costHeuristic = this.new <Double>Setting<Double>(3.5D); public Setting<Double> costHeuristic = new Setting<>(3.5D);
// a bunch of obscure internal A* settings that you probably don't want to change // a bunch of obscure internal A* settings that you probably don't want to change
/** /**
@ -222,12 +222,12 @@ public class Settings {
/** /**
* Pathing can never take longer than this * Pathing can never take longer than this
*/ */
public Setting<Number> pathTimeoutMS = new Setting<>(2000L); public Setting<Long> pathTimeoutMS = new Setting<>(2000L);
/** /**
* Planning ahead while executing a segment can never take longer than this * Planning ahead while executing a segment can never take longer than this
*/ */
public Setting<Number> planAheadTimeoutMS = new Setting<>(4000L); public Setting<Long> planAheadTimeoutMS = new Setting<>(4000L);
/** /**
* For debugging, consider nodes much much slower * For debugging, consider nodes much much slower
@ -237,12 +237,12 @@ public class Settings {
/** /**
* Milliseconds between each node * Milliseconds between each node
*/ */
public Setting<Number> slowPathTimeDelayMS = new Setting<>(100L); public Setting<Long> slowPathTimeDelayMS = new Setting<>(100L);
/** /**
* The alternative timeout number when slowPath is on * The alternative timeout number when slowPath is on
*/ */
public Setting<Number> slowPathTimeoutMS = new Setting<>(40000L); public Setting<Long> slowPathTimeoutMS = new Setting<>(40000L);
/** /**
* The big one. Download all chunks in simplified 2-bit format and save them for better very-long-distance pathing. * The big one. Download all chunks in simplified 2-bit format and save them for better very-long-distance pathing.