Skip to content

Commit

Permalink
Fix mixin remapping, fixes #24
Browse files Browse the repository at this point in the history
  • Loading branch information
hlysine committed May 27, 2024
1 parent 34d2004 commit 56b5c7a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.5.3 - 2024-05-27 [Fabric only]

### Fixed

- Crash due to incorrect mixin remapping

## 1.5.2 - 2024-05-27 [Fabric only]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ mod_name=Create: Power Loader
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=1.5.2-mc1.20.1-fabric
mod_version=1.5.3-mc1.20.1-fabric
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public void setLoader(StationChunkLoader loader) {

@Inject(
at = @At("RETURN"),
method = "read(Lnet/minecraft/nbt/CompoundTag;ZLcom/simibubi/create/content/trains/graph/DimensionPalette;)V",
remap = false
method = "read(Lnet/minecraft/nbt/CompoundTag;ZLcom/simibubi/create/content/trains/graph/DimensionPalette;)V"
)
private void cpl$read(CompoundTag nbt, boolean migration, DimensionPalette dimensions, CallbackInfo ci) {
CompoundTag data = nbt.getCompound("CPLData");
Expand All @@ -54,8 +53,7 @@ public void setLoader(StationChunkLoader loader) {

@Inject(
at = @At("RETURN"),
method = "write(Lnet/minecraft/nbt/CompoundTag;Lcom/simibubi/create/content/trains/graph/DimensionPalette;)V",
remap = false
method = "write(Lnet/minecraft/nbt/CompoundTag;Lcom/simibubi/create/content/trains/graph/DimensionPalette;)V"
)
private void cpl$write(CompoundTag nbt, DimensionPalette dimensions, CallbackInfo ci) {
nbt.put("CPLData", getLoader().write());
Expand Down

0 comments on commit 56b5c7a

Please sign in to comment.