Removed dormant universe support in HeroChat. Fixes #718.
This commit is contained in:
parent
327caeea47
commit
83006399a9
@ -229,16 +229,12 @@ public abstract class ChannelFactionsAbstract implements Channel
|
|||||||
{
|
{
|
||||||
Set<Player> ret = new HashSet<Player>();
|
Set<Player> ret = new HashSet<Player>();
|
||||||
|
|
||||||
// TODO: Dormant non-erased universe support?
|
MPlayer fsender = MPlayer.get(sender);
|
||||||
|
Faction faction = fsender.getFaction();
|
||||||
MPlayer fpsender = MPlayer.get(sender);
|
|
||||||
Faction faction = fpsender.getFaction();
|
|
||||||
String universe = fpsender.getUniverse();
|
|
||||||
|
|
||||||
for (Player player : MUtil.getOnlinePlayers())
|
for (Player player : MUtil.getOnlinePlayers())
|
||||||
{
|
{
|
||||||
MPlayer frecipient = MPlayer.get(player);
|
MPlayer frecipient = MPlayer.get(player);
|
||||||
if (!frecipient.getUniverse().equals(universe)) continue;
|
|
||||||
if (!this.getTargetRelations().contains(faction.getRelationTo(frecipient))) continue;
|
if (!this.getTargetRelations().contains(faction.getRelationTo(frecipient))) continue;
|
||||||
ret.add(player);
|
ret.add(player);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user