mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-21 04:22:25 +00:00
Fix randomizer beam breaking everything
This commit is contained in:
1 parent
6344bfb4fd
commit
ef32dfb64c
1 file changed
+3
@@ -10,6 +10,7 @@ import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import thaumcraft.client.fx.ParticleEngine;
|
||||
import thaumcraft.client.fx.particles.FXBubble;
|
||||
import thaumcraft.client.lib.UtilsFX;
|
||||
@@ -87,6 +88,7 @@ public class MultiTickEffectDispatcher {
|
||||
info.randomOffset = currentRenderWorld.rand.nextInt(20);
|
||||
}
|
||||
|
||||
GL11.glPushMatrix();
|
||||
float ticks = Minecraft.getMinecraft().renderViewEntity.ticksExisted + info.randomOffset + partialTicks;
|
||||
UtilsFX.drawFloatyLine(
|
||||
info.pedestalX,
|
||||
@@ -100,6 +102,7 @@ public class MultiTickEffectDispatcher {
|
||||
"textures/misc/wispy.png",
|
||||
-0.02F,
|
||||
Math.min(ticks, 10.0F) / 10.0F);
|
||||
GL11.glPopMatrix();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user