Spectrum

Spectrum

2M Downloads

[BUG] dedicated server crash

imreallybadatnames opened this issue ยท 4 comments

commented

Describe the bug
Dedicated server crashes because entity types are not initialized.

Adding SpectrumEntityTypes.registerClient(); to onInitialize method in SpectrumCommon.java fixed the issue.
To Reproduce
Just start up a dedicated server with spectrum.

Expected behavior
Not crash.

Screenshots
Not needed, it is easily reproducible and always happens no matter what.

commented

Did you actually build this thing yourself before the first actual release? I honestly feel honored, wow.

Yeah, those should definitely be registered both server and clientside. Thank you!

commented

Unfortunately, the quick and dirty fix crashes the client, seemingly because the entity types are registered twice now(in common and client java files)

commented

Yep, removing the register call from the client init method fixed the issue.

commented

If you have any feedlack whatsoever, I am happy to hear it. ๐Ÿ˜