Optimization
This commit is contained in:
parent
48d721310d
commit
4b4204cee1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12379
javascript/classes.js
12379
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -42,22 +42,6 @@ public class RenderModule extends Mod {
|
|||
} else if ((getY()) < 0) {
|
||||
this.y = 0;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user