poison: Use equals when comparing objects

This commit is contained in:
sdburns1998
2019-07-07 17:44:57 +02:00
parent 4646cfa7ef
commit a82d3f08c4

View File

@@ -488,7 +488,7 @@ public class PoisonPlugin extends Plugin
} }
// Only update sprites when the heart icon actually changes // Only update sprites when the heart icon actually changes
if (newHeart != heart) if (newHeart != null && !newHeart.equals(heart))
{ {
heart = newHeart; heart = newHeart;
client.getWidgetSpriteCache().reset(); client.getWidgetSpriteCache().reset();