aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/utils
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-11-26 13:46:15 -0500
committerbowser0000 <bowser0000@gmail.com>2020-11-26 13:46:15 -0500
commit7d642a6baf59b98a63eaf15e4ba59f6a5210db8c (patch)
tree15f38149151dcb45369d6d7944773da8bed02ea2 /src/main/java/me/Danker/utils
parent8b78e680240a20d1b44c03f6bbcbb42b36a02827 (diff)
downloadSkyblockMod-7d642a6baf59b98a63eaf15e4ba59f6a5210db8c.tar.gz
SkyblockMod-7d642a6baf59b98a63eaf15e4ba59f6a5210db8c.tar.bz2
SkyblockMod-7d642a6baf59b98a63eaf15e4ba59f6a5210db8c.zip
Possibly fix blaze hitbox issues, add more colours to config
Add lowest/highest blaze colours to config Remove chat message for trivia
Diffstat (limited to 'src/main/java/me/Danker/utils')
-rw-r--r--src/main/java/me/Danker/utils/Utils.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/utils/Utils.java b/src/main/java/me/Danker/utils/Utils.java
index 4361f8f..29e61ed 100644
--- a/src/main/java/me/Danker/utils/Utils.java
+++ b/src/main/java/me/Danker/utils/Utils.java
@@ -312,9 +312,10 @@ public class Utils {
}
// Yoinked from ForgeHax
- public static void draw3DBox(AxisAlignedBB aabb, int r, int g, int b, int a, float partialTicks) {
+ public static void draw3DBox(AxisAlignedBB aabb, int colourInt, float partialTicks) {
Entity render = Minecraft.getMinecraft().getRenderViewEntity();
WorldRenderer worldRenderer = Tessellator.getInstance().getWorldRenderer();
+ Color colour = new Color(colourInt);
double realX = render.lastTickPosX + (render.posX - render.lastTickPosX) * partialTicks;
double realY = render.lastTickPosY + (render.posY - render.lastTickPosY) * partialTicks;
@@ -327,7 +328,7 @@ public class Utils {
GlStateManager.disableAlpha();
GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);
GL11.glLineWidth(2);
- GlStateManager.color(r / 255f, g / 255f, b / 255f, a / 255f);
+ GlStateManager.color(colour.getRed() / 255f, colour.getGreen() / 255f, colour.getBlue() / 255f, colour.getAlpha() / 255f);
worldRenderer.begin(GL11.GL_LINE_STRIP, DefaultVertexFormats.POSITION);
worldRenderer.pos(aabb.minX, aabb.minY, aabb.minZ).endVertex();