Optimization

This commit is contained in:
ThisIsALegitUsername 2023-01-11 21:57:27 +00:00
parent 48d721310d
commit 4b4204cee1
9 changed files with 6189 additions and 6208 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -42,22 +42,6 @@ public class RenderModule extends Mod {
} else if ((getY()) < 0) { } else if ((getY()) < 0) {
this.y = 0; this.y = 0;
dragging = false; dragging = false;
} else if (getX() <= 0 && getY() < 0) {
this.y = 0;
this.x = 0;
dragging = false;
} else if (getX() + getWidth() > GuiScreen.width && getY() < 0) {
this.x = GuiScreen.width - getWidth();
this.y = 0;
dragging = false;
} else if (getX() + getWidth() > GuiScreen.width && getY() + getHeight() > GuiScreen.height) {
this.x = GuiScreen.width - getWidth();
this.y = GuiScreen.height - getHeight();
dragging = false;
} else if (getY() + getHeight() > GuiScreen.height && getX() < 0) {
this.x = GuiScreen.width - getWidth();
this.y = GuiScreen.height - getHeight();
dragging = false;
} }
} }