Advertisement
Scouter456

Untitled

Sep 24th, 2022
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. @Mixin(ScreenEffectRenderer.class)
  2. public class ScreenFireEffect {
  3.     @Redirect(at = @At(value = "INVOKE", target = "Lnet/minecraft/client/network/LocalPlayer;isOnFire()Z"), method = "net/minecraft/client/renderer/ScreenEffectRenderer.renderScreenEffect(Lnet/minecraft/client/Minecraft;Lcom/mojang/blaze3d/vertex/PoseStack;)V")
  4.     private static boolean renderOverlaysMixin(LocalPlayer playerEntity, Minecraft minecraft, PoseStack poseStack) {
  5.         boolean hasLavaVision = playerEntity.hasEffect(MobEffects.LAVA_VISION);
  6.         boolean isOnFire = playerEntity.isOnFire();
  7.  
  8.         return isOnFire && !hasLavaVision;
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement