From b2aa3c435ffb6689f71efff91d05361a86bbf7ca Mon Sep 17 00:00:00 2001 From: ThisIsALegitUsername Date: Thu, 29 Dec 2022 00:36:15 +0000 Subject: [PATCH] Port nohurtcam --- .../java/net/minecraft/client/renderer/EntityRenderer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/client/renderer/EntityRenderer.java b/src/main/java/net/minecraft/client/renderer/EntityRenderer.java index fdcb9c67..104d398c 100644 --- a/src/main/java/net/minecraft/client/renderer/EntityRenderer.java +++ b/src/main/java/net/minecraft/client/renderer/EntityRenderer.java @@ -13,6 +13,7 @@ import com.google.common.base.Predicates; import dev.resent.Resent; import dev.resent.module.base.ModManager; +import dev.resent.util.misc.W; import net.lax1dude.eaglercraft.v1_8.Display; import net.lax1dude.eaglercraft.v1_8.Mouse; import net.lax1dude.eaglercraft.v1_8.log4j.LogManager; @@ -421,7 +422,7 @@ public class EntityRenderer implements IResourceManagerReloadListener { } private void hurtCameraEffect(float partialTicks) { - if (this.mc.getRenderViewEntity() instanceof EntityLivingBase) { + if (this.mc.getRenderViewEntity() instanceof EntityLivingBase && !W.noHurtCam().isEnabled()) { EntityLivingBase entitylivingbase = (EntityLivingBase) this.mc.getRenderViewEntity(); float f = (float) entitylivingbase.hurtTime - partialTicks; if (entitylivingbase.getHealth() <= 0.0F) { @@ -1149,6 +1150,7 @@ public class EntityRenderer implements IResourceManagerReloadListener { RenderHelper.disableStandardItemLighting(); this.setupFog(0, partialTicks); this.mc.mcProfiler.endStartSection("particles"); + effectrenderer.renderParticles(entity, partialTicks); this.disableLightmap(); }