fix for Spout faction labels not updating for players who have /f map on
This commit is contained in:
		@@ -184,21 +184,20 @@ 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)?
 | 
					 | 
				
			||||||
			Faction factionFrom = Board.getFactionAt(from);
 | 
					 | 
				
			||||||
			Faction factionTo = Board.getFactionAt(to);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
			if (factionFrom != factionTo)
 | 
					 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			me.sendFactionHereMessage();
 | 
								me.sendFactionHereMessage();
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (me.getAutoClaimFor() != null)
 | 
							if (me.getAutoClaimFor() != null)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user