follow offset distance and direction

This commit is contained in:
Leijurv
2018-09-17 10:36:39 -07:00
parent 583a5046ef
commit b3654492be
3 changed files with 26 additions and 2 deletions

View File

@@ -400,6 +400,9 @@ public class ExampleBaritoneControl extends Behavior implements Helper {
if (setting.value.getClass() == Double.class) {
setting.value = Double.parseDouble(data[1]);
}
if (setting.value.getClass() == Float.class) {
setting.value = Float.parseFloat(data[1]);
}
} catch (NumberFormatException e) {
logDirect("Unable to parse " + data[1]);
event.cancel();