From 4198f647a35a6de7bc12242cbc8cf37d20e66cba Mon Sep 17 00:00:00 2001 From: inglettronald Date: Thu, 25 May 2023 18:38:57 -0500 Subject: removed a useless function --- src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt b/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt index 229b380..7cb00f7 100644 --- a/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt +++ b/src/main/kotlin/dulkirmod/utils/WorldRenderUtils.kt @@ -10,8 +10,6 @@ import net.minecraft.client.renderer.WorldRenderer import net.minecraft.client.renderer.entity.RenderManager import net.minecraft.client.renderer.vertex.DefaultVertexFormats import net.minecraft.util.Vec3 -import net.minecraftforge.client.event.RenderWorldLastEvent -import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import org.lwjgl.opengl.GL11 import java.awt.Color @@ -23,7 +21,6 @@ class WorldRenderUtils { private val tessellator: Tessellator = Tessellator.getInstance() private val worldRenderer: WorldRenderer = tessellator.worldRenderer private val renderManager: RenderManager = mc.renderManager - var partialTicks: Float = 0f fun renderString( location: Vec3, text: String, @@ -177,11 +174,6 @@ class WorldRenderUtils { GlStateManager.popMatrix() } - @SubscribeEvent - fun grabPartialTicks(event: RenderWorldLastEvent) { - this.partialTicks = event.partialTicks - } - fun getRenderX() : Double { return (mc.renderManager as AccessorRenderManager).renderX } -- cgit