Skip to content

Some tweaks to simplify firing MobSpawnEvent.FinalizeSpawn from Kilt#13

Closed
Acuadragon100 wants to merge 5 commits into
KiltMC:kilt/1.20.1from
Acuadragon100:kilt/1.20.1-finalize-spawn-event
Closed

Some tweaks to simplify firing MobSpawnEvent.FinalizeSpawn from Kilt#13
Acuadragon100 wants to merge 5 commits into
KiltMC:kilt/1.20.1from
Acuadragon100:kilt/1.20.1-finalize-spawn-event

Conversation

@Acuadragon100
Copy link
Copy Markdown

Needed by KiltMC/Kilt#789

This might fire the event again if some forge mod uses `@ModifyReceiver` in `ForgeEventFactory::onFinalizeSpawn`, but will make sure that running `finalizeSpawn` on a new mob from `finalizeSpawn` will work as expected.
This should make sure the finalize event is only fired once per entity.
@BluSpring
Copy link
Copy Markdown
Member

In theory, wouldn't these changes be possible as a mixin workaround? I feel like it would be preferred so we remember to port these changes between versions.

@Acuadragon100
Copy link
Copy Markdown
Author

Wait, so basically close this pull request and move everything into KiltMC/Kilt#789?

@BluSpring
Copy link
Copy Markdown
Member

Yeah pretty much

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.

2 participants