Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Mixin(ScreenEffectRenderer.class)
- public class ScreenFireEffect {
- @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")
- private static boolean renderOverlaysMixin(LocalPlayer playerEntity, Minecraft minecraft, PoseStack poseStack) {
- boolean hasLavaVision = playerEntity.hasEffect(MobEffects.LAVA_VISION);
- boolean isOnFire = playerEntity.isOnFire();
- return isOnFire && !hasLavaVision;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement