fix double rendering and a priority issue

Signed-off-by: PKLite <stonewall@pklite.xyz>
(cherry picked from commit 1724ad8a468af5bb678030ed77d1485996d72ebb)
This commit is contained in:
PKLite
2019-09-09 08:27:18 -04:00
parent 8a43f10599
commit 98bb51dc09
2 changed files with 6 additions and 4 deletions

View File

@@ -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)
{

View File

@@ -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));
}