Prefer to use Optional !isPresent than isEmpty.
This commit is contained in:
parent
a3353aa519
commit
5f84007f7e
@ -441,7 +441,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -437,7 +437,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -437,7 +437,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -437,7 +437,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -436,7 +436,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -436,7 +436,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -436,7 +436,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -436,7 +436,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -436,7 +436,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -436,7 +436,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -436,7 +436,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -436,7 +436,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -460,7 +460,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -460,7 +460,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -437,7 +437,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -437,7 +437,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -437,7 +437,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -439,7 +439,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -439,7 +439,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -439,7 +439,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -441,7 +441,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -440,7 +440,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -445,7 +445,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -445,7 +445,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
@ -445,7 +445,7 @@ public class Attackable extends Npc
|
||||
}
|
||||
container.damage = totalMemberDamage;
|
||||
|
||||
if (partyContainerStream.isEmpty())
|
||||
if (!partyContainerStream.isPresent())
|
||||
{
|
||||
damagingParties.add(container);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user