SpongePowered / Sponge

The SpongeAPI implementation targeting vanilla Minecraft and 3rd party platforms.
MIT License
383 stars 211 forks source link

Wyrmroost + SpongeForge calls client class on server (SF 1.16.5) #3532

Closed Inscrutable closed 2 years ago

Inscrutable commented 3 years ago

I am currently running spongeforge-1.16.5-36.2.1-8.0.0-RC896-universal forge-1.16.5-36.2.4 java version 1.8.0_301 by Oracle Operating System: Windows 10.0.19042

Issue Description When I log in and try to spawn any kind of dragon from Wyrmroost, I get kicked and can't login again. The server throws a dire looking error (and this problem only happens when SpongeForge is present): (1) An error occurred building event handler - java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screen/Screen for invalid dist DEDICATED_SERVER

Note: I disabled the entity bounding box limit in the sponge config for these tests.

WyrmroostSponge2.log

gabizou commented 2 years ago

Care to try this special build built from this PR? I believe it'll solve this problem (and the 4 other tickets related to this one).

Inscrutable commented 2 years ago

Sorry, no such luck, It goes kaboom in a spectacular fashion, and won't start at all. java.lang.StringIndexOutOfBoundsException: String index out of range: 0 seems to be at the core of it. I'm running Eclipse Temurin JRE 8 v 312, and Forge 1.16.5 36.2.26 this time, but that shouldn't affect things.

SpongeFallDownGoBoom.log

gabizou commented 2 years ago

Try with this build built from the same PR.

Inscrutable commented 2 years ago

100% functional. Well done, it works!

gabizou commented 2 years ago

Fixed with https://github.com/SpongePowered/Sponge/pull/3619