Skip to content

Commit

Permalink
Fix Mixin application failure in production
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Oct 15, 2024
1 parent ae29196 commit dfbe1bc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ private void updateData(final PalettedContainer.Data<T> data) {
* @author Spottedleaf
*/
@Inject(
method = "<init>*",
// cannot use `<init>*` due to https://github.com/FabricMC/tiny-remapper/issues/137
method = {
"<init>(Lnet/minecraft/core/IdMap;Lnet/minecraft/world/level/chunk/PalettedContainer$Strategy;Lnet/minecraft/world/level/chunk/PalettedContainer$Configuration;Lnet/minecraft/util/BitStorage;Ljava/util/List;)V",
"<init>(Lnet/minecraft/core/IdMap;Lnet/minecraft/world/level/chunk/PalettedContainer$Strategy;Lnet/minecraft/world/level/chunk/PalettedContainer$Data;)V",
"<init>(Lnet/minecraft/core/IdMap;Ljava/lang/Object;Lnet/minecraft/world/level/chunk/PalettedContainer$Strategy;)V"
},
at = @At(
value = "RETURN"
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ abstract class PalettedContainerMixin {
* @author jpenilla
*/
@Redirect(
method = "<init>*",
// cannot use `<init>*` due to https://github.com/FabricMC/tiny-remapper/issues/137
method = {
"<init>(Lnet/minecraft/core/IdMap;Lnet/minecraft/world/level/chunk/PalettedContainer$Strategy;Lnet/minecraft/world/level/chunk/PalettedContainer$Configuration;Lnet/minecraft/util/BitStorage;Ljava/util/List;)V",
"<init>(Lnet/minecraft/core/IdMap;Lnet/minecraft/world/level/chunk/PalettedContainer$Strategy;Lnet/minecraft/world/level/chunk/PalettedContainer$Data;)V",
"<init>(Lnet/minecraft/core/IdMap;Ljava/lang/Object;Lnet/minecraft/world/level/chunk/PalettedContainer$Strategy;)V"
},
at = @At(
value = "NEW",
target = "Lnet/minecraft/util/ThreadingDetector;"
Expand Down

0 comments on commit dfbe1bc

Please sign in to comment.