Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minecraft 1.21.4 Support #68

Open
sternschnaube opened this issue May 11, 2024 · 15 comments
Open

Minecraft 1.21.4 Support #68

sternschnaube opened this issue May 11, 2024 · 15 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation game version

Comments

@sternschnaube
Copy link

java.lang.RuntimeException: Mixin transformation of net.minecraft.class_2275 failed
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:427)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:323)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218)
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1027)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.defineClassFwd(KnotClassLoader.java:160)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:355)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218)
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
at net.minecraft.class_2358.method_10199(class_2358.java:336)
at net.minecraft.class_2966.method_12851(class_2966.java:53)
at net.minecraft.client.main.Main.main(Main.java:170)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392)
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:234)
at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:202)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:422)
... 18 more
Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [allstackable.mixins.json:MixinCauldronBlock from mod allstackable] from phase [DEFAULT] in config [allstackable.mixins.json] FAILED during APPLY
at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError(MixinProcessor.java:638)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinApplyError(MixinProcessor.java:589)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:379)
... 21 more
Caused by: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: Critical injection failure: @Inject annotation on cleanStackedShulkerBox could not find any targets matching 'Lnet/minecraft/class_2275;method_9534(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;)Lnet/minecraft/class_1269;' in net.minecraft.class_2275. Using refmap AllStackable-refmap.json [PREINJECT Applicator Phase -> allstackable.mixins.json:MixinCauldronBlock from mod allstackable -> Prepare Injections -> -> handler$zzi000$allstackable$cleanStackedShulkerBox(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;Lnet/minecraft/class_3965;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfoReturnable;)V -> Parse]
at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.validateTargets(InjectionInfo.java:658)
at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.findTargets(InjectionInfo.java:589)
at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.readAnnotation(InjectionInfo.java:330)
at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.(InjectionInfo.java:316)
at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.(InjectionInfo.java:308)
at org.spongepowered.asm.mixin.injection.struct.CallbackInjectionInfo.(CallbackInjectionInfo.java:46)
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.spongepowered.asm.mixin.injection.struct.InjectionInfo$InjectorEntry.create(InjectionInfo.java:149)
at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.parse(InjectionInfo.java:710)
at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:1329)
at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.prepareInjections(MixinApplicatorStandard.java:1053)
at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:395)
at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:327)
at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:422)
at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:403)
at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363)
... 21 more

@sternschnaube sternschnaube added the bug Something isn't working label May 11, 2024
@sternschnaube sternschnaube changed the title Update to 1.20.6 Please Update to 1.21 Please Jun 18, 2024
@TheRonGDD
Copy link

TheRonGDD commented Jul 1, 2024

@KrisCris This is the best stack editing mod out there. Is there any chance this will be updated? There is no realistic alternative out there as of now.

@sternschnaube
Copy link
Author

I hope so 😄

@bohicars
Copy link

bohicars commented Jul 3, 2024

please say you are updating this to 1.21, it is amazing and love the configurability of it! and its so easy to use!

@icedegreaser
Copy link

yes please

@PhantomRuffy
Copy link

this would be amazing

@tropicthedev
Copy link
Contributor

tropicthedev commented Sep 24, 2024

I do have a working version of 1.21 BUT there are some bugs im trying to figure out, if @KrisCris would like the patch still I would be happy to provide it in a PR. Going to fork the project and then add the code there in the meantime.

@KrisCris
Copy link
Owner

I do have a working version of 1.21 BUT there are some bugs im trying to figure out, if @KrisCris would like the patch still I would be happy to provide it in a PR. Going to fork the project and then add the code there in the meantime.

Yes please, thank you for the support!

@tropicthedev
Copy link
Contributor

I do have a working version of 1.21 BUT there are some bugs im trying to figure out, if @KrisCris would like the patch still I would be happy to provide it in a PR. Going to fork the project and then add the code there in the meantime.

Yes please, thank you for the support!

Ok I have added the code to this PR #70

@KrisCris KrisCris pinned this issue Sep 28, 2024
@KrisCris
Copy link
Owner

For anyone interested, this is the download link for the dev build based on @tropicthedev's fix. https://github.com/KrisCris/AllStackable/actions/runs/11063712281/artifacts/1985566584

@sternschnaube
Copy link
Author

Tested the build now, works!
Thank you both 😄

@KrisCris
Copy link
Owner

KrisCris commented Oct 8, 2024

Any feedback on this build is appreciated! https://github.com/KrisCris/AllStackable/actions/runs/11233241525

@KrisCris KrisCris changed the title Update to 1.21 Please Minecraft 1.21 Support Oct 8, 2024
@KrisCris KrisCris added documentation Improvements or additions to documentation game version labels Oct 8, 2024
@sternschnaube
Copy link
Author

sternschnaube commented Oct 8, 2024

I was trying the new build with stack size up to 99.
Changed my configuration file and put everything to 99.
Seems to load from the console output.

image

Now on the server, I can't stack up to 99, re-joining the world doesn't help.

I have to set the stack size again with command and re-join the server, then I can refresh my inventory with the stacksize.
Otherwise everything works!

@KrisCris
Copy link
Owner

KrisCris commented Oct 8, 2024

I was trying the new build with stack size up to 99. Changed my configuration file and put everything to 99. Seems to load from the console output.

Now on the server, I can't stack up to 99, re-joining the world doesn't help.

I have to set the stack size again with command and re-join the server, then I can refresh my inventory with the stacksize. Otherwise everything works!

I am not sure what's happening, were you modifying the stack size on the server? Cuz the stack size is always synced from the server side, i.e. per world config.

@sternschnaube
Copy link
Author

Yep, I changed the config from the world folder. Replacing all "64" values with "99".
But this seems not to work correctly.
Using the command while you playing works.

@sternschnaube
Copy link
Author

Armor cannot be stacked too.

image

@sternschnaube sternschnaube changed the title Minecraft 1.21 Support Minecraft 1.21.3 Support Nov 16, 2024
@sternschnaube sternschnaube changed the title Minecraft 1.21.3 Support Minecraft 1.21.4 Support Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation game version
Projects
None yet
Development

No branches or pull requests

7 participants