Minor code formatter settings.
This commit is contained in:
@@ -850,7 +850,8 @@ public final class CharEffectList
|
||||
public void stopEffects(L2EffectType type)
|
||||
{
|
||||
boolean update = false;
|
||||
final Consumer<BuffInfo> action = info -> {
|
||||
final Consumer<BuffInfo> action = info ->
|
||||
{
|
||||
if (info.getEffects().stream().anyMatch(effect -> (effect != null) && (effect.getEffectType() == type)))
|
||||
{
|
||||
stopAndRemove(info);
|
||||
|
@@ -364,7 +364,8 @@ public class L2Party extends AbstractPlayerGroup
|
||||
|
||||
if (_positionBroadcastTask == null)
|
||||
{
|
||||
_positionBroadcastTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(() -> {
|
||||
_positionBroadcastTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(() ->
|
||||
{
|
||||
if (_positionPacket == null)
|
||||
{
|
||||
_positionPacket = new PartyMemberPosition(this);
|
||||
@@ -430,7 +431,8 @@ public class L2Party extends AbstractPlayerGroup
|
||||
{
|
||||
// Otherwise, delete the old sign, and apply it to the new target
|
||||
_tacticalSigns.replace(tacticalSignId, target);
|
||||
getMembers().forEach(m -> {
|
||||
getMembers().forEach(m ->
|
||||
{
|
||||
m.sendPacket(new ExTacticalSign(tacticalTarget, 0));
|
||||
m.sendPacket(new ExTacticalSign(target, tacticalSignId));
|
||||
});
|
||||
|
@@ -4311,7 +4311,8 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
|
||||
if (distFraction > 1)
|
||||
{
|
||||
ThreadPoolManager.getInstance().executeAi(() -> {
|
||||
ThreadPoolManager.getInstance().executeAi(() ->
|
||||
{
|
||||
try
|
||||
{
|
||||
if (Config.MOVE_BASED_KNOWNLIST)
|
||||
|
@@ -11150,7 +11150,8 @@ public final class L2PcInstance extends L2Playable
|
||||
pet.updateAndBroadcastStatus(0);
|
||||
}
|
||||
|
||||
getServitors().values().forEach(s -> {
|
||||
getServitors().values().forEach(s ->
|
||||
{
|
||||
s.setFollowStatus(false);
|
||||
s.teleToLocation(getLocation(), false);
|
||||
((L2SummonAI) s.getAI()).setStartFollowController(true);
|
||||
@@ -11753,7 +11754,8 @@ public final class L2PcInstance extends L2Playable
|
||||
}
|
||||
}
|
||||
|
||||
getServitors().values().forEach(s -> {
|
||||
getServitors().values().forEach(s ->
|
||||
{
|
||||
s.setRestoreSummon(true);
|
||||
s.unSummon(this);
|
||||
});
|
||||
|
@@ -66,4 +66,4 @@ public class ConditionPlayerCanSummonPet extends Condition
|
||||
}
|
||||
return (_val == canSummon);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -855,7 +855,8 @@ public final class Instance
|
||||
{
|
||||
if ((player != null))
|
||||
{
|
||||
_ejectDeadTasks.put(player.getObjectId(), ThreadPoolManager.getInstance().scheduleGeneral(() -> {
|
||||
_ejectDeadTasks.put(player.getObjectId(), ThreadPoolManager.getInstance().scheduleGeneral(() ->
|
||||
{
|
||||
if (player.isDead() && (player.getInstanceId() == getId()))
|
||||
{
|
||||
player.setInstanceId(0);
|
||||
|
@@ -2508,14 +2508,16 @@ public abstract class AbstractScript extends ManagedScript
|
||||
{
|
||||
if (includeCommandChannel && player.getParty().isInCommandChannel())
|
||||
{
|
||||
player.getParty().getCommandChannel().forEachMember(member -> {
|
||||
player.getParty().getCommandChannel().forEachMember(member ->
|
||||
{
|
||||
actionForEachPlayer(member, npc, isSummon);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
else if (includeParty)
|
||||
{
|
||||
player.getParty().forEachMember(member -> {
|
||||
player.getParty().forEachMember(member ->
|
||||
{
|
||||
actionForEachPlayer(member, npc, isSummon);
|
||||
return true;
|
||||
});
|
||||
|
Reference in New Issue
Block a user