22
22
import meteordevelopment .meteorclient .systems .modules .Modules ;
23
23
import meteordevelopment .meteorclient .systems .modules .player .FastUse ;
24
24
import meteordevelopment .meteorclient .systems .modules .player .Multitask ;
25
+ import meteordevelopment .meteorclient .systems .modules .render .ESP ;
25
26
import meteordevelopment .meteorclient .systems .modules .world .HighwayBuilder ;
26
27
import meteordevelopment .meteorclient .utils .Utils ;
27
28
import meteordevelopment .meteorclient .utils .misc .CPSUtils ;
36
37
import net .minecraft .client .option .GameOptions ;
37
38
import net .minecraft .client .util .Window ;
38
39
import net .minecraft .client .world .ClientWorld ;
40
+ import net .minecraft .entity .Entity ;
39
41
import net .minecraft .entity .player .PlayerEntity ;
40
42
import net .minecraft .item .ItemStack ;
41
43
import net .minecraft .util .hit .HitResult ;
@@ -198,7 +200,7 @@ private void onRender(CallbackInfo info) {
198
200
lastTime = time ;
199
201
}
200
202
201
- // multitask
203
+ // Multitask
202
204
203
205
@ ModifyExpressionValue (method = "doItemUse" , at = @ At (value = "INVOKE" , target = "Lnet/minecraft/client/network/ClientPlayerInteractionManager;isBreakingBlock()Z" ))
204
206
private boolean doItemUseModifyIsBreakingBlock (boolean original ) {
@@ -223,6 +225,17 @@ private void handleInputEventsInjectStopUsingItem(CallbackInfo info) {
223
225
}
224
226
}
225
227
228
+ // Glow esp
229
+
230
+ @ ModifyReturnValue (method = "hasOutline" , at = @ At ("RETURN" ))
231
+ private boolean hasOutlineModifyIsOutline (boolean original , Entity entity ) {
232
+ ESP esp = Modules .get ().get (ESP .class );
233
+ if (esp == null ) return original ;
234
+ if (!esp .isGlow () || esp .shouldSkip (entity )) return original ;
235
+
236
+ return esp .getColor (entity ) != null || original ;
237
+ }
238
+
226
239
// Interface
227
240
228
241
@ Override
0 commit comments