From 56b5c7a0298bfe35fb1fb69e2fddd3f4ace55e36 Mon Sep 17 00:00:00 2001 From: Henry Lin Date: Mon, 27 May 2024 19:51:52 +0800 Subject: [PATCH] Fix mixin remapping, fixes #24 --- CHANGELOG.md | 6 ++++++ gradle.properties | 2 +- .../create_power_loader/mixin/GlobalStationMixin.java | 6 ++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6dd0b59..f2d1058 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/gradle.properties b/gradle.properties index e6d6e0b..f4acf49 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/src/main/java/com/hlysine/create_power_loader/mixin/GlobalStationMixin.java b/src/main/java/com/hlysine/create_power_loader/mixin/GlobalStationMixin.java index daf66c4..6bcde22 100644 --- a/src/main/java/com/hlysine/create_power_loader/mixin/GlobalStationMixin.java +++ b/src/main/java/com/hlysine/create_power_loader/mixin/GlobalStationMixin.java @@ -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"); @@ -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());