Baubles no longer render on players with the invisibility effect enabled. Closes #811

This commit is contained in:
Lizbeth Rika committed 2015-04-25 16:15:32 +01:00
1 parent 11009b4fc2
commit 08e854ce6e
1 file changed
+2 -1
@@ -20,6 +20,7 @@ import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.potion.Potion;
import net.minecraft.util.IIcon;
import net.minecraftforge.client.event.RenderPlayerEvent;
@@ -41,7 +42,7 @@ public final class BaubleRenderHandler {
@SubscribeEvent
public void onPlayerRender(RenderPlayerEvent.Specials.Post event) {
if(!ConfigHandler.renderBaubles)
if(!ConfigHandler.renderBaubles || event.entityLiving.getActivePotionEffect(Potion.invisibility) != null)
return;
EntityPlayer player = event.entityPlayer;