Skip to content

Fix crash when golem is placed on dedicated server#48

Closed
sobrinth wants to merge 1 commit intoGTNewHorizons:masterfrom
sobrinth:golem-crash
Closed

Fix crash when golem is placed on dedicated server#48
sobrinth wants to merge 1 commit intoGTNewHorizons:masterfrom
sobrinth:golem-crash

Conversation

@sobrinth
Copy link

With the changes in #44 registration of several EventHandler classes was moved to the ServerStartEvent.

At least EventHandlerGolem is needed to be registered on both logical sides, when the server is running "remote".
Otherwise when placing a new golem, golem-data is not persisted to the world and then the rendering fails.

Crash in the mentioned issue only happens when playing on a dedicated server.

I'm quite out of touch with Forge for 1.7.10 and where which events are fired, so the following is just a "feeling", but I'm not quite sure that it's correct for the other affected Handlers only being registered on Server as there are several world.isRemote() checks in the contained EventHandlers.

Fixes GTNewHorizons/GT-New-Horizons-Modpack#23000

@Alexdoru Alexdoru self-assigned this Feb 25, 2026
@Alexdoru
Copy link
Member

I made a fix #49

@Alexdoru Alexdoru closed this Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TC Golem Rendering Crash

3 participants