SolidBlock-cn / mishanguc

迷上城建
GNU Lesser General Public License v3.0
6 stars 2 forks source link

使用mohist-1.20.1-Forge mod loading, version 47.3.11, for MC 1.20.1 with MCP 20230612.114412通过Sinytra Connector-1.0.0-beta.46+1.20.1运行Mishang Urban Construction-1.4.1-1.20.1出现错误 #15

Open YwaLy opened 1 week ago

YwaLy commented 1 week ago

Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:32) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.Launcher.run(Launcher.java:108) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.Launcher.main(Launcher.java:78) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) at cpw.mods.bootstraplauncher@1.1.2/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) at com.mohistmc.MohistMCStart.main(MohistMCStart.java:116) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at MC-BOOTSTRAP/fmlloader@1.20.1-47.3.11/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) at MC-BOOTSTRAP/fmlloader@1.20.1-47.3.11/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.serverService(CommonLaunchHandler.java:103) at MC-BOOTSTRAP/fmlloader@1.20.1-47.3.11/net.minecraftforge.fml.loading.targets.CommonServerLaunchHandler.lambda$makeService$0(CommonServerLaunchHandler.java:27) at MC-BOOTSTRAP/cpw.mods.modlauncher@10.0.9/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ... 8 more Caused by: java.lang.ExceptionInInitializerError at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.commands.GameRuleCommand$1.handler$zck000$fabric_game_rule_api_v1$onRegisterCommand(GameRuleCommand.java:538) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.commands.GameRuleCommand$1.m6889(GameRuleCommand.java) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.level.GameRules.m46166(GameRules.java:149) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.level.GameRules.m46203(GameRules.java:144) at java.base/java.util.TreeMap.forEach(TreeMap.java:1319) at TRANSFORMER/minecraft@1.20.1/net.minecraft.world.level.GameRules.m46164(GameRules.java:143) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.commands.GameRuleCommand.m137744(GameRuleCommand.java:16) at TRANSFORMER/minecraft@1.20.1/net.minecraft.commands.Commands.(Commands.java:164) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.ReloadableServerResources.(ReloadableServerResources.java:41) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.ReloadableServerResources.m247740(ReloadableServerResources.java:75) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.WorldLoader.m214362(WorldLoader.java:38) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.Main.lambda$main$2(Main.java:221) at TRANSFORMER/minecraft@1.20.1/net.minecraft.Util.m214652(Util.java:777) at TRANSFORMER/minecraft@1.20.1/net.minecraft.Util.m214679(Util.java:772) at TRANSFORMER/minecraft@1.20.1/net.minecraft.server.Main.main(Main.java:220) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ... 13 more Caused by: java.lang.RuntimeException: java.lang.NoSuchFieldException: no such field: net.minecraft.server.commands.GameRuleCommand$1.f137760/com.mojang.brigadier.builder.LiteralArgumentBuilder/getField at TRANSFORMER/fabric_game_rule_api_v1@1.0.40+683d4da877/net.fabricmc.fabric.impl.gamerule.GameRuleReflectionUtils.(GameRuleReflectionUtils.java:40) ... 29 more Caused by: java.lang.NoSuchFieldException: no such field: net.minecraft.server.commands.GameRuleCommand$1.f137760/com.mojang.brigadier.builder.LiteralArgumentBuilder/getField at java.base/java.lang.invoke.MemberName.makeAccessException(MemberName.java:912) at java.base/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:989) at java.base/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3754) at java.base/java.lang.invoke.MethodHandles$Lookup.findVarHandle(MethodHandles.java:3202) at TRANSFORMER/fabric_game_rule_api_v1@1.0.40+683d4da877/net.fabricmc.fabric.impl.gamerule.GameRuleReflectionUtils.(GameRuleReflectionUtils.java:38) ... 29 more Caused by: java.lang.NoSuchFieldError: Class net.minecraft.server.commands.GameRuleCommand$1 does not have member field 'com.mojang.brigadier.builder.LiteralArgumentBuilder f137760' at java.base/java.lang.invoke.MethodHandleNatives.resolve(Native Method) at java.base/java.lang.invoke.MemberName$Factory.resolve(MemberName.java:957) at java.base/java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:986) ... 32 more

SolidBlock-cn commented 4 days ago

我注意到报错有如下内容Caused by: java.lang.RuntimeException: java.lang.NoSuchFieldException: no such field: net.minecraft.server.commands.GameRuleCommand$1.f_137760_/com.mojang.brigadier.builder.LiteralArgumentBuilder/getField从后面的堆栈回溯来看,可能是Sinytra Connector的Fabric Gamerule API部分有点问题。因此我推测这可能是Sinyta Connector的问题。