Removed some unneeded methods.
- Removed "isImplemented" field from GameMod as all of the base mods have been implemented. - Removed Utils.getBoundedValue() methods in preference for Utils.clamp(). Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -640,7 +640,7 @@ public class Options {
|
||||
*/
|
||||
public void drag(GameContainer container, int d) {
|
||||
if (type == OptionType.NUMERIC)
|
||||
val = Utils.getBoundedValue(val, d, min, max);
|
||||
val = Utils.clamp(val + d, min, max);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user