fix for Spout faction labels not updating for players who have /f map on
This commit is contained in:
parent
f1114848ff
commit
a8ed55c215
@ -184,20 +184,19 @@ public class FactionsPlayerListener extends PlayerListener
|
|||||||
|
|
||||||
me.setLastStoodAt(to);
|
me.setLastStoodAt(to);
|
||||||
|
|
||||||
|
// Did we change "host"(faction)?
|
||||||
|
boolean changedFaction = (Board.getFactionAt(from) != Board.getFactionAt(to));
|
||||||
|
|
||||||
|
if (changedFaction && SpoutFeatures.updateTerritoryDisplay(me))
|
||||||
|
changedFaction = false;
|
||||||
|
|
||||||
if (me.isMapAutoUpdating())
|
if (me.isMapAutoUpdating())
|
||||||
{
|
{
|
||||||
me.sendMessage(Board.getMap(me.getFaction(), to, player.getLocation().getYaw()));
|
me.sendMessage(Board.getMap(me.getFaction(), to, player.getLocation().getYaw()));
|
||||||
}
|
}
|
||||||
else
|
else if (changedFaction)
|
||||||
{
|
{
|
||||||
// Did we change "host"(faction)?
|
me.sendFactionHereMessage();
|
||||||
Faction factionFrom = Board.getFactionAt(from);
|
|
||||||
Faction factionTo = Board.getFactionAt(to);
|
|
||||||
|
|
||||||
if (factionFrom != factionTo)
|
|
||||||
{
|
|
||||||
me.sendFactionHereMessage();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (me.getAutoClaimFor() != null)
|
if (me.getAutoClaimFor() != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user