Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
imDaniX committed Feb 15, 2024
1 parent f1bc332 commit 59cc02c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
public interface Activity extends Named {
boolean proceed(@NotNull Environment env, @NotNull String paramsStr);

// TODO
default boolean isAsync() {
default boolean isAsync() { // TODO
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public boolean proceed(@NotNull Environment env, @NotNull String paramsStr) { //
} else {
return false;
}
double mod = change.isEmpty() || !(NumberUtils.isNumber(change)) ? 1 : Double.parseDouble(change);
double mod = NumberUtils.parseDouble(change).orElse(1);
varNumberValue += actType == Type.INCREASE ? mod : -mod;
varsManager.setVariable(playerName, varName, NumberUtils.simpleFormat(varNumberValue));
}
Expand Down

0 comments on commit 59cc02c

Please sign in to comment.