WorldGuard

WorldGuard

8M Downloads

Rectangle polygon region missing one side, BUG

Closed this issue · 0 comments

commented

WorldEdit Version

7.3.16

WorldGuard Version

7.0.14

Platform Version

Paper version 1.21.8-35-main@b200237 (2025-08-15T21:04:16Z) (Implementing API version 1.21.8-R0.1-SNAPSHOT)

Confirmations

  • I am using the most recent Minecraft release.
  • I am using a version of WorldEdit compatible with my Minecraft version.
  • I am using a version of WorldGuard compatible with my Minecraft version.
  • I am using the latest or recommended version of my platform software.
  • I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
  • I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)

Bug Description

Poly2D rectangle regions have inconsistent edge handling on the boundary.
/rg info sometimes doesn’t show the region exactly on the east side

Expected Behavior

I expected that rectangle poly2d regions can be created.
At (-42,15) /rg info shows region
At (-32,15) /rg info shows region

Reproduction Steps

Create a poly2d rectangle with inclusive corners points: (-42,10), (-32,10), (-32,20), (-42,20)

testpoly:
    members: {}
    flags: {}
    owners: {}
    type: poly2d
    priority: 0
    max-y: 319
    min-y: -64
    points:
    - {x: -32, z: 20}
    - {x: -42, z: 20}
    - {x: -42, z: 10}
    - {x: -32, z: 10}

Between (-32,10) and (-32,20) /rg info shows global region

Optional WorldGuard-Report

No response

Anything Else?

This only happens in certain places in the world