mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 01:27:27 +00:00
Removed shadow when rendering an NPC that shouldn't be visible to a specific player after using setVisibleTo().
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user