Removed shadow when rendering an NPC that shouldn't be visible to a specific player after using setVisibleTo().

This commit is contained in:
luisc committed 2021-12-03 21:54:13 -06:00
1 parent f14bc107d3
commit cd5b4c0633
1 file changed
+1 -1
@@ -73,7 +73,7 @@ public class RenderNPCInterface extends RenderLiving{
public void doRenderShadowAndFire(Entity par1Entity, double par2, double par4, double par6, float par8, float par9){
EntityNPCInterface npc = (EntityNPCInterface) par1Entity;
if(!npc.isKilled())
if(!npc.isKilled() && !npc.scriptInvisibleToPlayer(Minecraft.getMinecraft().thePlayer))
super.doRenderShadowAndFire(par1Entity, par2, par4, par6, par8, par9);
}