-
-
Notifications
You must be signed in to change notification settings - Fork 925
Open
Labels
status:acceptedWill be fixed / added to WorldEdit, eventuallyWill be fixed / added to WorldEdit, eventuallytype:bugIncorrect behavior, not working as intendedIncorrect behavior, not working as intended
Description
WORLDEDIT-3096 - Reported by BukkitSmerf
Every Polygonal2DRegion returns other sizes than should, even rectangles:
Example code:
Polygonal2DRegion polReg = new Polygonal2DRegion();
polReg.addPoint(new BlockVector2D(1, 1));
polReg.addPoint(new BlockVector2D(1, 10));
polReg.addPoint(new BlockVector2D(10, 10));
polReg.addPoint(new BlockVector2D(10, 1));
// 10x10 = 100
sender.sendMessage(Integer.toString(polReg.getArea()));
// send 89 (9x9) instead of 100
I need that to block creating too big regions/selections.
Metadata
Metadata
Assignees
Labels
status:acceptedWill be fixed / added to WorldEdit, eventuallyWill be fixed / added to WorldEdit, eventuallytype:bugIncorrect behavior, not working as intendedIncorrect behavior, not working as intended