Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
# Conflicts:
#	eco-api/src/main/java/com/willfp/eco/core/config/interfaces/Config.java
  • Loading branch information
WillFP committed Jul 16, 2023
2 parents 739d9cf + 0a80518 commit ee237f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ default double getDoubleFromExpression(@NotNull String path,
default double getDoubleFromExpression(@NotNull String path,
@NotNull PlaceholderContext context) {
return Objects.requireNonNullElseGet(
getDoubleOrNull(path),
this.getDoubleOrNull(path),
() -> NumberUtils.evaluateExpression(this.getString(path), context.withInjectableContext(this))
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ object ArgParserHead : LookupArgParser {
return null
}

if (meta.owningPlayer!!.name.equals("null", true) || meta.owningPlayer!!.name == null) {
return null
}

return "head:${meta.owningPlayer?.name}"
}
}

0 comments on commit ee237f9

Please sign in to comment.