mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-28 03:27:43 +01:00
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.
This commit is contained in:
parent
4ec086e4fa
commit
73ea2b75e0
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user