fix double rendering and a priority issue
Signed-off-by: PKLite <stonewall@pklite.xyz> (cherry picked from commit 1724ad8a468af5bb678030ed77d1485996d72ebb)
This commit is contained in:
@@ -124,7 +124,8 @@ public class PlayerIndicatorsOverlay extends Overlay
|
||||
{
|
||||
|
||||
OverlayUtil.renderActorTextAndImage(graphics, actor, builtString, color,
|
||||
ImageUtil.resizeImage(skullIcon, y, y), 0, x);
|
||||
ImageUtil.resizeImage(skullIcon, y, y), ACTOR_OVERHEAD_TEXT_MARGIN, ACTOR_HORIZONTAL_TEXT_MARGIN);
|
||||
return;
|
||||
}
|
||||
if (plugin.isHighlightClan() && actor.isClanMember() && plugin.isShowClanRanks() && relation == PlayerRelation.CLAN)
|
||||
{
|
||||
|
||||
@@ -71,15 +71,16 @@ public class PlayerIndicatorsService
|
||||
&& plugin.getLocationHashMap().containsKey(PlayerRelation.TEAM));
|
||||
|
||||
target = (player) -> (!team.test(player) && !clan.test(player)
|
||||
&& !friend.test(player) && PvPUtil.isAttackable(client, player)
|
||||
&& !self.test(player) && plugin.getLocationHashMap().containsKey(PlayerRelation.TARGET));
|
||||
&& !client.isFriended(player.getName(), false) && PvPUtil.isAttackable(client, player)
|
||||
&& !client.getLocalPlayer().equals(player) && plugin.getLocationHashMap().containsKey(PlayerRelation.TARGET));
|
||||
|
||||
caller = (player) -> (plugin.isCaller(player) && plugin.getLocationHashMap().containsKey(PlayerRelation.CALLER));
|
||||
|
||||
callerTarget = (player) -> (plugin.isPile(player) && plugin.getLocationHashMap().containsKey(PlayerRelation.CALLER_TARGET));
|
||||
|
||||
other = (player) ->
|
||||
(!PvPUtil.isAttackable(client, player) && !team.test(player) && !clan.test(player) && !friend.test(player)
|
||||
(!PvPUtil.isAttackable(client, player) && !client.getLocalPlayer().equals(player)
|
||||
&& !team.test(player) && !player.isClanMember() && !client.isFriended(player.getName(), false)
|
||||
&& plugin.getLocationHashMap().containsKey(PlayerRelation.OTHER));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user