Prefer to use Optional !isPresent than isEmpty.

This commit is contained in:
MobiusDevelopment
2022-03-16 09:31:30 +00:00
parent a3353aa519
commit 5f84007f7e
25 changed files with 25 additions and 25 deletions

View File

@@ -436,7 +436,7 @@ public class Attackable extends Npc
}
container.damage = totalMemberDamage;
if (partyContainerStream.isEmpty())
if (!partyContainerStream.isPresent())
{
damagingParties.add(container);
}