Skip to content

Commit

Permalink
Limit crucible scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed Jun 8, 2024
1 parent 1bd0a14 commit 923ca5e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,21 @@ public void render(HSSoulAltarTE te, double x, double y, double z, float partial
GlStateManager.popAttrib();
GlStateManager.popMatrix();

String soulsText = "Souls: " + te.soulCount;
GlStateManager.pushMatrix();
GlStateManager.translate(x + 0.5, y + 1.5, z + 0.5);
GlStateManager.rotate(-Minecraft.getMinecraft().getRenderManager().playerViewY, 0, 1, 0);
GlStateManager.rotate(Minecraft.getMinecraft().getRenderManager().playerViewX, 1, 0, 0);
GlStateManager.scale(-0.025f, -0.025f, 0.025f);
GlStateManager.disableLighting();
Minecraft.getMinecraft().fontRenderer.drawString(soulsText, -Minecraft.getMinecraft().fontRenderer.getStringWidth(soulsText) / 2, 0, 0xFFFFFF);
GlStateManager.enableLighting();
GlStateManager.popMatrix();

if (!stack.isEmpty())
{
// Display soul count
String soulsText = "Souls: " + te.soulCount;
GlStateManager.pushMatrix();
GlStateManager.translate(x + 0.5, y + 1.5, z + 0.5);
GlStateManager.rotate(-Minecraft.getMinecraft().getRenderManager().playerViewY, 0, 1, 0);
GlStateManager.rotate(Minecraft.getMinecraft().getRenderManager().playerViewX, 1, 0, 0);
GlStateManager.scale(-0.025f, -0.025f, 0.025f);
GlStateManager.disableLighting();
Minecraft.getMinecraft().fontRenderer.drawString(soulsText, -Minecraft.getMinecraft().fontRenderer.getStringWidth(soulsText) / 2, 0, 0xFFFFFF);
GlStateManager.enableLighting();
GlStateManager.popMatrix();

// Display input stack count
String stackText = String.valueOf(stack.getCount());
GlStateManager.pushMatrix();
GlStateManager.translate(x + 0.5, y + 2.7, z + 0.5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ public void update()
this.flipA += (f - this.flipA) * 0.9F;
this.pageFlip += this.flipA;

if (this.world.getWorldTime() % 40 == 39)
if (this.world.getWorldTime() % 20 == 19 && !this.getItem().isEmpty())
{
soulCount = scanCrucibleLevels() * 10;
this.soulCount = scanCrucibleLevels() * 10;
}
}

Expand Down

0 comments on commit 923ca5e

Please sign in to comment.