Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameterless constructor to morph message #85

Closed
wants to merge 1 commit into from
Closed

Add parameterless constructor to morph message #85

wants to merge 1 commit into from

Conversation

EccentricVamp
Copy link

@EccentricVamp EccentricVamp commented Feb 27, 2022

Fixes #83

From the error message posted in that issue I traced the error to vazkii.arl.network.NetworkHandler, which expects all messages to have a constructor with no parameters.

MessageMorphTome implements a single constructor which takes a parameter. As a result, NetworkHandler errors out whenever it tries to deserialize the morph message, preventing the Tome from morphing into any of the books it contains.

I fixed this by making adding a parameterless constructor to MessageMorphTome and removing static from modid. I didn't touch the existing constructor, so this shouldn't break anything else.

I've tested this locally on my client with no issues.

@EccentricVamp
Copy link
Author

@Alwinfy let me know if there's anything I need to change before this gets merged.

@EccentricVamp
Copy link
Author

EccentricVamp commented Mar 24, 2022

[edit: removed snarkyness]

I think I can do better, so I'm going to go make my own mod. With blackjack and hookers

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.

1.18.1 tome not changing to book
2 participants