Skip to content

Commit

Permalink
rename world to level
Browse files Browse the repository at this point in the history
  • Loading branch information
melontini committed Apr 17, 2024
1 parent 2d75fbf commit a585f34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ New:
```
/say hi ${{this_entity.getX}}
/say hi ${{round(sqrt(abs(world.getSeed)), 0)}}
/say hi ${{round(sqrt(abs(level.getSeed)), 0)}}
```

* Added additional casts to the `$(){{}}` syntax. `bool`, `int`, `double`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static DataResult<Function<LootContext, EvaluationValue>> parseExpression
public static class MapBasedDataAccessor implements DataAccessorIfc {

private static final Map<Identifier, Function<LootContext, Object>> overrides = ImmutableMap.of(
new Identifier("world"), LootContext::getWorld,
new Identifier("level"), LootContext::getWorld,
new Identifier("luck"), LootContext::getLuck
);
public final ThreadLocal<LootContext> local = new ThreadLocal<>();
Expand Down

0 comments on commit a585f34

Please sign in to comment.