Skip to content

Commit

Permalink
fix weird dimensions sometimes having different great spells
Browse files Browse the repository at this point in the history
  • Loading branch information
beholderface committed Jan 21, 2024
1 parent dbec7df commit 7c261fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public boolean toleratesOther(Iota that) {
public @NotNull CastResult execute(CastingVM vm, ServerLevel world, SpellContinuation continuation) {
@Nullable Component castedName = null;
try {
var lookup = PatternRegistryManifest.matchPattern(this.getPattern(), world, false);
var lookup = PatternRegistryManifest.matchPattern(this.getPattern(), world.getServer().overworld(), false);
vm.getEnv().precheckAction(lookup);

Action action;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static HexPattern getPattern(
CommandContext<CommandSourceStack> ctx, String argumentName) throws CommandSyntaxException {
var targetId = ctx.getArgument(argumentName, ResourceLocation.class);
var targetKey = ResourceKey.create(IXplatAbstractions.INSTANCE.getActionRegistry().key(), targetId);
var foundPat = PatternRegistryManifest.getCanonicalStrokesPerWorld(targetKey, ctx.getSource().getLevel());
var foundPat = PatternRegistryManifest.getCanonicalStrokesPerWorld(targetKey, ctx.getSource().getServer().overworld());
if (foundPat == null) {
throw ERROR_UNKNOWN_PATTERN.create(targetId);
} else {
Expand Down

0 comments on commit 7c261fc

Please sign in to comment.