devtools: Use equals when comparing objects

This commit is contained in:
sdburns1998
2019-07-07 03:53:57 +02:00
parent e979f7fc65
commit 0bc32b0d5f

View File

@@ -160,7 +160,7 @@ class DevToolsOverlay extends Overlay
for (Player p : players)
{
if (p != local)
if (!p.equals(local))
{
String text = p.getName() + " (A: " + p.getAnimation() + ") (G: " + p.getSpotAnimation() + ")";
OverlayUtil.renderActorOverlay(graphics, p, text, BLUE);