Skip to content

Commit

Permalink
Merge branch '1.20.4' into 1.20.6
Browse files Browse the repository at this point in the history
# Conflicts:
#	settings.gradle.kts
  • Loading branch information
rfresh2 committed Jan 2, 2025
2 parents 0018d0e + bad5a49 commit e5d4321
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 @@ -58,6 +58,7 @@ public abstract class MixinMapProcessor implements CustomMapProcessor {
}

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

@Inject(method = "getMainId(ILnet/minecraft/client/multiplayer/ClientPacketListener;)Ljava/lang/String;", at = @At("HEAD"),
cancellable = true,
Expand All @@ -75,6 +76,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 @@ -9,7 +9,7 @@ pluginManagement {
}
}
gradle.extra.apply {
set("mod_version", "2.25")
set("mod_version", "2.25.1")
set("minecraft_version", "1.20.6")
set("parchment_version", "2024.06.16")
set("worldmap_version_fabric", "1.39.2")
Expand Down

0 comments on commit e5d4321

Please sign in to comment.