Prefer to use Optional !isPresent than isEmpty.
This commit is contained in:
@@ -441,7 +441,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
Reference in New Issue
Block a user