Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix check for expiring chest claims #1600

Merged
merged 1 commit into from
Sep 28, 2021
Merged

Fix check for expiring chest claims #1600

merged 1 commit into from
Sep 28, 2021

Conversation

Bobcat00
Copy link

The code for checking expiration of chest claims has a test to see if the player has only one claim. But this test is done in the wrong place and can prevent the regular claim expiration code from being run.

This PR moves the test for ownerData.getClaims().size() == 1 to the outer if statement where it belongs.

Fixes #1597

@RoboMWM RoboMWM merged commit ed92324 into GriefPrevention:master Sep 28, 2021
@Bobcat00 Bobcat00 deleted the expirefix branch January 3, 2023 12:49
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.

Claim expiration bug
2 participants