powbot / issues

1 stars 0 forks source link

[BUG] .within(area) ignoring outer tiles #226

Closed iDznPB closed 1 year ago

iDznPB commented 1 year ago

Describe the bug easier to see from the screenshots but the first one where the model is not highlighted IS inside the area, or intersecting, whatever. It's not being found in the stream. Whereas the second one IS highlighted and in turn being found inside my stream.

To Reproduce/Line of code causing issue

for(GroundItem mark:GroundItems.stream().name("Mark of grace").within(currentArea)){
       mmark. Model).draw(mark.localX(), mark.localY());
}
for(Tile tile: currentArea.getTiles()){
       Rendering.drawPolygon(tile. Matrix().bounds());
}

Expected behavior Include the mark on the edge of the area

Screenshots image image

constt commented 1 year ago

@iDznPB pushed fix

iDznPB commented 1 year ago

Closed as completed, thank you!