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