Skip to content

Commit

Permalink
Fix Rectangle code ported from 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed May 12, 2019
1 parent 59ec24c commit 07c15e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mezz/jei/gui/GuiScreenHelper.java
Expand Up @@ -75,7 +75,7 @@ public boolean updateGuiExclusionAreas() {
if (!guiAreas.equals(this.guiExclusionAreas)) {
// make a defensive copy because Rectangle is mutable
this.guiExclusionAreas = guiAreas.stream()
.map(Rectangle::new)
.map(r -> new Rectangle2d(r.getX(), r.getY(), r.getWidth(), r.getHeight()))
.collect(Collectors.toSet());
return true;
}
Expand Down

0 comments on commit 07c15e1

Please sign in to comment.