From 7ee342c4418a31f1e21c4e780aa43998136b52a6 Mon Sep 17 00:00:00 2001 From: SammySemicolon <69329424+SammySemicolon@users.noreply.github.com> Date: Sun, 29 Oct 2023 12:43:51 +0100 Subject: [PATCH] Update VoidConduitRenderer.java --- .../renderer/block/VoidConduitRenderer.java | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/main/java/com/sammy/malum/client/renderer/block/VoidConduitRenderer.java b/src/main/java/com/sammy/malum/client/renderer/block/VoidConduitRenderer.java index cf8c27cb2..4354ff744 100644 --- a/src/main/java/com/sammy/malum/client/renderer/block/VoidConduitRenderer.java +++ b/src/main/java/com/sammy/malum/client/renderer/block/VoidConduitRenderer.java @@ -54,27 +54,5 @@ public void renderQuad(VoidConduitBlockEntity voidConduit, PoseStack poseStack, poseStack.translate(0.5f, 0.001f, 0.5f); builder.renderQuad(textureConsumer, poseStack, positions, 1f); poseStack.popPose(); - if (voidConduit.lingeringRadiance > 0) { - float effectStrength = 1f; - if (voidConduit.lingeringRadiance < 2400) { - effectStrength = (float) voidConduit.lingeringRadiance / 2400f; - } - // create a for loop that renders the square animation using an additive texture render type - // the square should be rendered at the same position as the vignette - textureConsumer = RenderHandler.DELAYED_RENDER.getBuffer(LodestoneRenderTypeRegistry.ADDITIVE_TEXTURE.applyAndCache(SQUARE)); - poseStack.pushPose(); - poseStack.translate(0.5f, 0f, 0.5f); - for (int i = 0; i < 8; i++) { - poseStack.translate(0f, 0.001f, 0f); - //the frame for the animation should be calculated using the current tick and the index of the for loop - //the frame should be calculated using the modulus operator - float gameTime = (voidConduit.getLevel().getGameTime() + partialTicks) % 160; - int frame = (int) ((gameTime / 20 + i) % 8); - builder.setUV(0.125f * frame, 0f, 0.125f * (frame + 1), 1f); - builder.setColor(COLORS.get(i)); - builder.renderQuad(textureConsumer, poseStack, positions, effectStrength); - } - poseStack.popPose(); - } } } \ No newline at end of file