Giter Club home page Giter Club logo

maelstrom-lib's People

Contributors

kohanis avatar miyo6032 avatar natanfudge avatar

Watchers

 avatar  avatar

maelstrom-lib's Issues

Incorrect usage of `@Environment(EnvType.SERVER)`

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 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.