A bug with my mod that is possibly caused by Sponge API interations which involves Y-axis Player Aligned Block States

Firstly, I am a mod producer and I have a user who encountered a crash that when placing a block from my mod that is an Y-axis Player Aligned block by hand in Creative Mode - the crash report is https://pastebin.com/D6Q1b8JM

The above-mentioned crash report focuses on these files - BlockWallConcreteStrokeVBeige1.class and BlockWallConcreteStrokeVBeige1$BlockCustom.class. The user claimed that server crashes when that block was placed.
BlockWallConcreteStrokeVBeige1.class - https://pastebin.com/WURd1D4x
BlockWallConcreteStrokeVBeige1$BlockCustom.class - https://pastebin.com/mmJd5UVa
(Blockstate) wallconcretestrokevbeige1.json - https://pastebin.com/ecEsix5q

I would like to clarify that 1) I have zero knowledge on Sponge API. I attempt to ask for help here only because this user uses Sponge for his server and he naturally uses my mod with it. 2) I made my mod with MCreator (I regret using that thing so much since I know how to code), which makes code tracing more challenging because they named every function names in the most inhumane way possible.

My speculations so far is that this mod does not seem to be compatible with Sponge. But where exactly is it causing the problem?? Also according to the stacktrace in the crash report, a method call on a different mod called Tool Progression exists: tyra314.toolprogression.handlers.TooltipEventHandler.onGetToolTipEvent(TooltipEventHandler.java:79) Could the problem be caused by that instead???

Thanks

So this is one of those rare instances where Sponge isn’t even mention in the stacktrace (except that the server type).

The crash mentions client a lot and doesnt mention Sponge in the mods, meaning I think thats actually a client crash where Sponge has nothing to do with it.

As for the issue at hand, the block they are placing has the property of direction where North,East,South,West are valid but not Down nor Up.

When the player places a block looking down it classes that as property down, however I believe it gets corrected before the block is actually placed. However it seems like the mod you pointed out, doesn’t account for this. Resulting in this crash.

Ive not looked at the code of that mod, nor am I a mod developer. Im a sponge vanilla plugin developer who have just taken a look at so many sponge forge crashes that I just repeat myself however this is a new one for me :slight_smile:

Noted. Although I am still not sure what to do with it, but thanks for the tip!

However I still dont get it: in local creative mode placing the block results in no problem, but why this issue appeared to be on a server game…

ALSO I FORGET TO MENTION… everytime the said user places the block, a huge amount of console log gets printed and in the end resulting a large amount of console spam…
The spam looks like this: https://pastebin.com/yrX6wPsQ

That issue is caused by grief prevention. It hasnt worked on sponge for a while now and isnt maintained anymore. The author made Grief Defender which is a paid for alternative.

Test it yourself and see if you can replicate it. If you can then attempt to prove me wrong and find out the if its this other mod that is causing it or something else. If it is the other mod then report it to those mod owners or attempt to build in a way to combat the situation on your mods side.