Mod class optimizations
This commit is contained in:
parent
2d06a594c3
commit
8ed63fd115
30108
javascript/classes.js
30108
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,6 @@ import dev.resent.module.Theme;
|
||||||
import dev.resent.module.setting.Setting;
|
import dev.resent.module.setting.Setting;
|
||||||
import dev.resent.util.render.RenderUtils;
|
import dev.resent.util.render.RenderUtils;
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.client.gui.Gui;
|
|
||||||
|
|
||||||
public class Mod {
|
public class Mod {
|
||||||
|
|
||||||
|
@ -61,11 +60,7 @@ public class Mod {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void drawRect(int left, int top, int right, int bottom, int color){
|
protected void drawRect(int left, int top, int right, int bottom, int color){
|
||||||
if(Theme.getRounded()){
|
RenderUtils.drawRoundedRect(left, top, right, bottom, 4, color, Theme.getRounded());
|
||||||
RenderUtils.drawRoundedRect(left, top, right, bottom, 4, color);
|
|
||||||
}else {
|
|
||||||
Gui.drawRect(left, top, right, bottom, color);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected int drawString(String text, int x, int y, int color, boolean idk){
|
protected int drawString(String text, int x, int y, int color, boolean idk){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user