Skip to content

GH-180 Add GriefPrevention region support for combat restrictions - #423

Open
vLuckyyy wants to merge 1 commit into
masterfrom
grief-prevention-integration
Open

GH-180 Add GriefPrevention region support for combat restrictions#423
vLuckyyy wants to merge 1 commit into
masterfrom
grief-prevention-integration

Conversation

@vLuckyyy

Copy link
Copy Markdown
Member

Resolve: GH-180

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 689c1e9ddb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Override
public Location getMax() {
Location max = this.claim.getGreaterBoundaryCorner();
return new Location(this.world, max.getBlockX(), this.world.getMaxHeight() - 1, max.getBlockZ());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include the claim's greater boundary in containment

GriefPrevention's greater boundary corner is inclusive, but Region.contains compares every coordinate with < getMax(). Consequently, a combat-tagged player standing on a claim's maximum X or Z row is reported by GriefPrevention as inside the claim while GriefPreventionRegion.contains reports them outside; moves within that row are then handled as attempts to enter and cancelled rather than receiving the normal inside-region knockback. Represent the upper bounds as exclusive or override containment so the greater boundary blocks remain included.

Useful? React with 👍 / 👎.

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.

add support for griefprevention

2 participants