Skip to content

cleaned up RegisterSpawnPlacementEvent patch - #19

Closed
ItsBlackGear wants to merge 3 commits into
KiltMC:kilt/1.21.1from
ItsBlackGear:kilt/1.21.1
Closed

ItsBlackGear wants to merge 3 commits into
KiltMC:kilt/1.21.1from
ItsBlackGear:kilt/1.21.1

Conversation

@ItsBlackGear

Copy link
Copy Markdown

a revisited and cleaner version of the patch, matching neoforged#3358

if (operation != Operation.REPLACE && (heightmap != null || placementType != null)) {
throw new IllegalStateException("Nonnull heightmap types or spawn placement types may only be used with the REPLACE operation. Entity Type: " + BuiltInRegistries.ENTITY_TYPE.getKey(entityType));
}
// Kilt: patch by @ItsBlackGear to fix Vanilla Backport (Fabric) + NML + Kilt, may be upstreamed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove the comment here tbh

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or comment out the original operation

@ItsBlackGear

Copy link
Copy Markdown
Author

i'll PR from another branch as i couldn't rollback to make it keep the upstream authors lol

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