File tree Expand file tree Collapse file tree 3 files changed +20
-28
lines changed
common/src/main/kotlin/com/lambda/graphics Expand file tree Collapse file tree 3 files changed +20
-28
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,13 @@ package com.lambda.graphics
2020import com.lambda.Lambda.mc
2121import com.lambda.event.EventFlow.post
2222import com.lambda.event.events.RenderEvent
23+ import com.lambda.event.events.TickEvent
24+ import com.lambda.event.listener.SafeListener.Companion.listen
2325import com.lambda.graphics.gl.GlStateUtils.setupGL
2426import com.lambda.graphics.gl.Matrices
2527import com.lambda.graphics.gl.Matrices.resetMatrices
28+ import com.lambda.graphics.renderer.esp.global.DynamicESP
29+ import com.lambda.graphics.renderer.esp.global.StaticESP
2630import com.lambda.module.modules.client.GuiSettings
2731import com.lambda.util.Communication.info
2832import com.lambda.util.math.Vec2d
@@ -58,6 +62,20 @@ object RenderMain {
5862
5963 setupGL {
6064 RenderEvent .World ().post()
65+ StaticESP .render()
66+ DynamicESP .render()
67+ }
68+ }
69+
70+ init {
71+ listen<TickEvent .Post > {
72+ StaticESP .clear()
73+ RenderEvent .StaticESP ().post()
74+ StaticESP .upload()
75+
76+ DynamicESP .clear()
77+ RenderEvent .DynamicESP ().post()
78+ DynamicESP .upload()
6179 }
6280 }
6381
Original file line number Diff line number Diff line change 1717
1818package com.lambda.graphics.renderer.esp.global
1919
20- import com.lambda.event.EventFlow.post
21- import com.lambda.event.events.RenderEvent
22- import com.lambda.event.events.TickEvent
23- import com.lambda.event.listener.SafeListener.Companion.listen
24- import com.lambda.graphics.renderer.esp.ESPRenderer
2520import com.lambda.graphics.renderer.esp.impl.DynamicESPRenderer
2621
27- object DynamicESP : DynamicESPRenderer() {
28- init {
29- listen<TickEvent .Post > {
30- clear()
31- RenderEvent .StaticESP ().post()
32- upload()
33- }
34- }
35- }
22+ object DynamicESP : DynamicESPRenderer()
Original file line number Diff line number Diff line change 1717
1818package com.lambda.graphics.renderer.esp.global
1919
20- import com.lambda.event.EventFlow.post
21- import com.lambda.event.events.RenderEvent
22- import com.lambda.event.events.TickEvent
23- import com.lambda.event.listener.SafeListener.Companion.listen
24- import com.lambda.graphics.renderer.esp.ESPRenderer
2520import com.lambda.graphics.renderer.esp.impl.StaticESPRenderer
2621
27- object StaticESP : StaticESPRenderer() {
28- init {
29- listen<TickEvent .Post > {
30- clear()
31- RenderEvent .StaticESP ().post()
32- upload()
33- }
34- }
35- }
22+ object StaticESP : StaticESPRenderer()
You can’t perform that action at this time.
0 commit comments