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 some more piston cases #1083

Merged
merged 2 commits into from Oct 29, 2020
Merged

Conversation

Jikoo
Copy link
Collaborator

@Jikoo Jikoo commented Oct 29, 2020

  • Fix retraction checking block behind piston when no blocks are moved
  • Everywhere modes are supposed to ignore subclaims, so piston claim should not be a subclaim once we enter the everywhere checks. This will speed up comparison quite a bit for pistons in subclaims.

Relates to #1082 - subclaims are supposed to be ignored in both EVERYWHERE (here) and EVERYWHERE_SIMPLE (here). Unfortunately, subclaims that have been resized are added to the chunk map, so they are compared against. Technically after this PR the only required use of Claim#getOwnerID is now just the first quick check where claims may be subclaims.

I'm not sure if this is enough to fix the hard-to-reproduce ailments that have been hitting EVERYWHERE_SIMPLE, but I'm doing my best to spend a little time every so often rereading and testing.

Jikoo and others added 2 commits October 29, 2020 10:28
* Retraction checked block behind piston when no blocks were moved
* Everywhere modes are supposed to ignore subclaims, so piston claim should not be a subclaim
@RoboMWM RoboMWM merged commit e1086c3 into GriefPrevention:master Oct 29, 2020
@Jikoo Jikoo deleted the bugfix/piston-checks branch October 29, 2020 17:27
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.

None yet

2 participants