From 73ea2b75e0d050e2e53b570af9b274dd260b3048 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Thu, 13 Oct 2011 04:23:00 -0500 Subject: [PATCH] Spout name-over-head modification seems to bug out for players viewing themselves, their name ends up over the head of some other mob in the world... so, it now skips doing that when viewer = viewed. Capes thankfully don't have the same problem, though a caped creeper might actually look pretty cool. --- src/com/massivecraft/factions/integration/SpoutFeatures.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/com/massivecraft/factions/integration/SpoutFeatures.java b/src/com/massivecraft/factions/integration/SpoutFeatures.java index eee1cc08..260c6e15 100644 --- a/src/com/massivecraft/factions/integration/SpoutFeatures.java +++ b/src/com/massivecraft/factions/integration/SpoutFeatures.java @@ -180,13 +180,11 @@ public class SpoutFeatures private static void updateSingle(Player viewer, Player viewed, Relation relation, Faction viewedFaction, String viewedTitle, Role viewedRole) { if (viewer == null || viewed == null) - { return; - } SpoutPlayer sPlayer = SpoutManager.getPlayer(viewer); - if (Conf.spoutFactionTagsOverNames || Conf.spoutFactionTitlesOverNames) + if ((Conf.spoutFactionTagsOverNames || Conf.spoutFactionTitlesOverNames) && viewer != viewed) { if (viewedFaction.isNormal()) {