aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-04-29 21:46:21 -0400
committerbowser0000 <bowser0000@gmail.com>2021-04-29 21:46:21 -0400
commitd79def85f593605e0ac2ff59232449b4a8446bb8 (patch)
tree0a982bec7777b3f08d4ba19c7678aecbe75bee25 /src/main/java
parent4e6be104aaa579abc06fff0613eb2dec991a7487 (diff)
downloadSkyblockMod-d79def85f593605e0ac2ff59232449b4a8446bb8.tar.gz
SkyblockMod-d79def85f593605e0ac2ff59232449b4a8446bb8.tar.bz2
SkyblockMod-d79def85f593605e0ac2ff59232449b4a8446bb8.zip
Colour blocks in creeper puzzle solver
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/me/Danker/features/puzzlesolvers/CreeperSolver.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/features/puzzlesolvers/CreeperSolver.java b/src/main/java/me/Danker/features/puzzlesolvers/CreeperSolver.java
index 7ff7e7a..cd6bcf4 100644
--- a/src/main/java/me/Danker/features/puzzlesolvers/CreeperSolver.java
+++ b/src/main/java/me/Danker/features/puzzlesolvers/CreeperSolver.java
@@ -78,7 +78,12 @@ public class CreeperSolver {
public void onWorldRender(RenderWorldLastEvent event) {
if (ToggleCommand.creeperToggled && drawCreeperLines && !creeperLines.isEmpty()) {
for (int i = 0; i < creeperLines.size(); i++) {
- Utils.draw3DLine(creeperLines.get(i)[0], creeperLines.get(i)[1], CREEPER_COLOURS[i % 10], 2, true, event.partialTicks);
+ Vec3 pos1 = creeperLines.get(i)[0];
+ Vec3 pos2 = creeperLines.get(i)[1];
+ int colour = CREEPER_COLOURS[i % 10];
+ Utils.draw3DLine(pos1, pos2, colour, 2, true, event.partialTicks);
+ Utils.drawFilled3DBox(new AxisAlignedBB(pos1.xCoord - 0.51, pos1.yCoord - 0.51, pos1.zCoord - 0.51, pos1.xCoord + 0.51, pos1.yCoord + 0.51, pos1.zCoord + 0.51), colour, true, true, event.partialTicks);
+ Utils.drawFilled3DBox(new AxisAlignedBB(pos2.xCoord - 0.51, pos2.yCoord - 0.51, pos2.zCoord - 0.51, pos2.xCoord + 0.51, pos2.yCoord + 0.51, pos2.zCoord + 0.51), colour, true, true, event.partialTicks);
}
}
}