miyo6032 / maelstrom-lib Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hi, I am currently testing a fix to the @Environment
field stripper that we plan to include in the upcoming Fabric loader 0.15: FabricMC/fabric-loader#860 This fixes a bug that caused fields with the @Environment
annotation to not be removed. Sadly this now causes your mod to crash on startup with the error attached at the bottom of this issue.
Looking at your source it appears that a number of fields are annotated with @Environment(EnvType.SERVER)
, these fields are then also used on the client causing this crash.
Generally we recommend mods dont use @Environment
at all, instead creating sepreate classes for client only code. Loom provides some tools to guarentee this by splitting the client code into sperate sourceset. The quick fix for now is to just ensure that you arent using a field with this annoation on the incorrect side, removing all @Environment(EnvType.SERVER)
annotations on fields will match the existing behaviour.
We plan to initially release 0.15 as a beta soon, I am just creating this issue as a heads up.
java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'bosses_of_mass_destruction'!
at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:388)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:386)
at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:52)
at net.minecraft.class_310.<init>(class_310.java:458)
at net.minecraft.client.main.Main.main(Main.java:211)
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)
Suppressed: java.lang.NoClassDefFoundError: Could not initialize class net.barribob.maelstrom.MaelstromMod
at net.barribob.maelstrom.MaelstromModKt.init(MaelstromMod.kt:46)
at java.base/java.lang.invoke.MethodHandleProxies$1.invoke(MethodHandleProxies.java:198)
at jdk.proxy3/com.sun.proxy.jdk.proxy3.$Proxy36.onInitialize(Unknown Source)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:384)
... 6 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoSuchFieldError: serverEventScheduler [in thread "Render thread"]
at net.barribob.maelstrom.MaelstromMod.<clinit>(MaelstromMod.kt:29)
at net.barribob.boss.MainKt.init(Main.kt:54)
... 9 more
Caused by: java.lang.NoSuchFieldError: serverEventScheduler
at net.barribob.maelstrom.MaelstromMod.<clinit>(MaelstromMod.kt:29)
at net.barribob.boss.MainKt.init(Main.kt:54)
at java.base/java.lang.invoke.MethodHandleProxies$1.invoke(MethodHandleProxies.java:198)
at jdk.proxy3/com.sun.proxy.jdk.proxy3.$Proxy36.onInitialize(Unknown Source)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:384)
... 6 more
Please let me know if you need anymore info, or help with this. Many thanks :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.