techchrism / TickTock

Fabric mod to give forceloaded chunks random ticks
MIT License
7 stars 6 forks source link

Crash on 1.16.4 #1

Closed InsaanNotFound closed 3 years ago

InsaanNotFound commented 3 years ago

Hello, most recent version of the mod crashes on start. Here is part of the log.

Failed to start Minecraft:
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196)
    at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231)
    at org.multimc.EntryPoint.listen(EntryPoint.java:143)
    at org.multimc.EntryPoint.main(EntryPoint.java:34)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:226)
    at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:141)
    at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:27)
    ... 8 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:224)
    ... 10 more
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:363)
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:208)
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClassBytes(MixinTransformer.java:178)
    at org.spongepowered.asm.mixin.transformer.FabricMixinTransformerProxy.transformClassBytes(FabricMixinTransformerProxy.java:23)
    at net.fabricmc.loader.launch.knot.KnotClassDelegate.getPostMixinClassByteArray(KnotClassDelegate.java:157)
    at net.fabricmc.loader.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:150)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at net.minecraft.class_5464.<clinit>(class_5464.java:93)
    at net.minecraft.class_5458.method_30571(class_5458.java:46)
    at net.minecraft.class_5458.method_30566(class_5458.java:75)
    at java.util.LinkedHashMap.forEach(Unknown Source)
    at net.minecraft.class_5458.<clinit>(class_5458.java:74)
    at net.minecraft.class_2378.<clinit>(class_2378.java:237)
    at net.minecraft.class_2966.method_12851(class_2966.java:42)
    at net.minecraft.client.main.Main.main(Main.java:137)
    ... 15 more
Caused by: org.spongepowered.asm.mixin.throwables.MixinError: Encountered undecorated Accessor method in lchunkloader.mixins.json:ChunkTicketManagerInvoker applying to net.minecraft.class_3204
    at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.isAlreadyMerged(MixinApplicatorStandard.java:632)
    at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.mergeMethod(MixinApplicatorStandard.java:548)
    at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyAccessors(MixinApplicatorStandard.java:1054)
    at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:393)
    at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:320)
    at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:345)
    at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:569)
    at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:351)
    ... 29 more
Exiting with -1
Process exited with code -1.
techchrism commented 3 years ago

Thanks for reporting the issue. It's caused by an incompatibility with LiterallyChunkLoader's 1.16.4 version because the mod author appears to have directly copied and pasted my mixin code. There is a bug that causes mixins with the same name to be incompatible - https://github.com/SpongePowered/Mixin/issues/430 I'll resolve this by changing my mixin names but unless LiterallyChunkLoader checks if TickTock is loaded, the chunks will be random ticked twice as often as they should be.