Skip to content

Commit

Permalink
Merge branch '1.19.4' into 1.19.2
Browse files Browse the repository at this point in the history
# Conflicts:
#	settings.gradle.kts
  • Loading branch information
rfresh2 committed Jan 3, 2025
2 parents 42bc61a + 4dec139 commit 9c775fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions common/src/main/java/xaeroplus/mixin/client/MixinMapProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public abstract class MixinMapProcessor implements CustomMapProcessor {
}

@Shadow public abstract String getDimensionName(final ResourceKey<Level> id);
@Shadow private MapWorld mapWorld;

@Inject(method = "getMainId(I)Ljava/lang/String;", at = @At("HEAD"),
cancellable = true,
Expand All @@ -74,6 +75,15 @@ public void getDimensionName(final ResourceKey<Level> id, final CallbackInfoRetu
}
}

@Inject(method = "onWorldUnload", at = @At("HEAD"))
public void resetCustomDimOnWorldUnload(final CallbackInfo ci) {
// Fixes a bug in base mods where if a custom viewed dimension is set,
// and the player changes dimensions, the same custom viewed dimension will persist
if (this.mapWorld != null) {
this.mapWorld.setCustomDimensionId(null);
}
}

@Redirect(method = "run", at = @At(
value = "INVOKE",
target = "Ljava/lang/Thread;sleep(J)V"
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pluginManagement {
}
}
gradle.extra.apply {
set("mod_version", "2.25")
set("mod_version", "2.25.1")
set("minecraft_version", "1.19.2")
set("parchment_version", "2022.11.27")
set("worldmap_version_fabric", "1.39.2")
Expand Down

0 comments on commit 9c775fc

Please sign in to comment.