Skip to content

Create 0994-Add-Mob-Spawner-support-to-AffectsSpawning.patch#9577

Closed
TreemanKing wants to merge 1 commit into
PaperMC:masterfrom
TreemanKing:master
Closed

Create 0994-Add-Mob-Spawner-support-to-AffectsSpawning.patch#9577
TreemanKing wants to merge 1 commit into
PaperMC:masterfrom
TreemanKing:master

Conversation

@TreemanKing
Copy link
Copy Markdown
Contributor

Introduce API for Mob Spawner support for AffectsSpawning to allow different type of spawning types. The reason for this as it would allow for the ability to only prevent natural spawns and keep mob spawns from spawners.

Originally I was just going to create another get/set, however, the code for checkDespawn is quite hard to change without breaking a previous patch hence I opted for editing original API by adding an extra boolean to the get (public void setAffectsSpawning(boolean affects, boolean affectsMobSpawners))

I believe everything should work by common sense but unsure if I've missed or possibly stuffed something up as it's my first time meddling around with this.

@TreemanKing TreemanKing requested a review from a team as a code owner August 5, 2023 11:11
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 5, 2023

Please do not open pull requests from the master branch, create a new branch instead.

@github-actions github-actions Bot closed this Aug 5, 2023
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