mta: Use equals when comparing objects
This commit is contained in:
@@ -121,7 +121,7 @@ public class AlchemyRoom extends MTARoom
|
|||||||
}
|
}
|
||||||
|
|
||||||
AlchemyItem bestItem = getBest();
|
AlchemyItem bestItem = getBest();
|
||||||
if (best == null || best != bestItem)
|
if (best == null || !best.equals(bestItem))
|
||||||
{
|
{
|
||||||
if (best != null)
|
if (best != null)
|
||||||
{
|
{
|
||||||
@@ -396,7 +396,7 @@ public class AlchemyRoom extends MTARoom
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (alchemyItem == best)
|
if (alchemyItem.equals(best))
|
||||||
{
|
{
|
||||||
client.setHintArrow(object.getWorldLocation());
|
client.setHintArrow(object.getWorldLocation());
|
||||||
found = true;
|
found = true;
|
||||||
|
|||||||
@@ -219,7 +219,7 @@ public class TelekineticRoom extends MTARoom
|
|||||||
{
|
{
|
||||||
NPC npc = event.getNpc();
|
NPC npc = event.getNpc();
|
||||||
|
|
||||||
if (npc == guardian)
|
if (npc.equals(guardian))
|
||||||
{
|
{
|
||||||
guardian = null;
|
guardian = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user