Skip to content

Conversation

@Lulu13022002
Copy link
Contributor

Mainly for the api to return the correct value for World#getAllowMonsters.

@Lulu13022002 Lulu13022002 requested a review from a team as a code owner January 5, 2026 19:31
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Jan 5, 2026
Copy link
Member

@Owen1212055 Owen1212055 left a comment

Choose a reason for hiding this comment

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

This properly aligns the check to the new vanilla behavior.

For reference, the check is being replaced with.

public boolean isSpawningMonsters() {
        return this.getLevelData().getDifficulty() != Difficulty.PEACEFUL
            && this.getGameRules().get(GameRules.SPAWN_MOBS)
            && this.getGameRules().get(GameRules.SPAWN_MONSTERS);
    }

So, a better representation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

2 participants