Skip to content

Conversation

@HaHaWTH
Copy link
Collaborator

@HaHaWTH HaHaWTH commented Jan 6, 2025

This pull request attempts to simulate vanilla respawn logic by calling methods originally called in constructors, as CraftBukkit respawn logic reuses player instance instead of creating a new one.

Some mods re-register DataParameter on ConstructEvent, the previous fix will cause IllegalStateException issues if mods do not check the param has been already registered.

The new fix captures all vanilla data values, clear DataManager then restore vanilla data values.


Download the test jars here:

This commit attempts to **simulate** vanilla respawn logic by calling methods originally called in constructors, as CraftBukkit respawn logic reuses player instance instead of creating a new one.
@HaHaWTH HaHaWTH merged commit 7044a52 into NovaEngineering-Source:bouncedpad Jan 9, 2025
HaHaWTH added a commit that referenced this pull request Jun 4, 2025
* Revert "Fix cb respawn logic (#16)"

This reverts commit 7044a52.

* Revert old patches
These fixes have been implemented better in HybridFix

* Add spigot ChunkProviderServer methods remap

* No need to use full-qualified name

* Add back final in Explosion & Suppress unused warning
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 participant