Closed NekoKera closed 3 years ago
I was wondering too why the mod wasn't marked client only in Mod Menu, because I don't see a reason why a mod that adds particles needs to run on the server, that said,
From what I can see, the effects of Falling Leaves does not work when only installed on the client side
I did try running it client only on my server and the particles are there, so I don't know what happened on your end, maybe particles are turned off/down? It takes a few seconds for a leaf to spawn under a tree and only if you're close enough, they are also pretty small.
In any case, here are some solutions:
The easiest fix is to simply not install the mod on servers.
The second easiest fix is to set "environment": "client"
in the fabric.mod.json:
This will also mark it [Client]
in Mod Menu and this will ensure no code is run on the server at all, this is probably what should be done for now.
If the mod needs to run on the server in the future, "LeafTickMixin"
needs to be moved from mixins
to client
in the mixins.json:
because randomDisplayTick
doesn't exist in server code (but randomTick
does).
I guess I'll just put up a pull request.
I've done some more testing and I can confirm that FallingLeaves does work on servers when only present on the client-side; however, I had issues running in combination with my server mod list, so I started going down testing it with each mod. What I discovered is that Falling Leaves does not work when BetterEnd is present on the server and client. BetterEnd (using the current most version) does work with FallingLeaves on Single Player, but this is not the case for Multiplayer, as the leaves do not fall from the trees (even in the overworld).
I can confirm and it's really odd.
Did some debugging and found that randomDisplayTick
and world.addParticle
is called like normal with reasonable positions and colors and that doesn't change when BetterEnd is installed on both server and client, but what does change is that FallingLeafParticle.DefaultFactory.createParticle
is for some reason never called.
Singleplayer is fine however, Vanilla particles like lava sparks, redstone glow are also not affected.
So it adds the particles but they are never created?
I see that BetterEnd uses some BiomeParticleConfig
s, but nothing that immediately screams mod conflict.
I'll report the issue to BetterEnd, maybe they know what's going on.
The issue of particles not appearing in multiplayer with BetterEnd should now be fixed with https://github.com/FabricMC/fabric/pull/1179 in the fabric API 0.26.3 release. The original issue is still open.
https://github.com/RandomMcSomethin/fallingleaves/pull/3 is now merged and released in mod version 1.3!
Falling Leaves results in an error when starting on a Fabric server. From what I can see, the effects of Falling Leaves does not work when only installed on the client side, but it doesn't stop a server without it from running normally (just without the falling leaves effect). I've posted the server start error log below.