Browse Source

inline method

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
f28c887b92
  1. 8
      src/engine/InterestManagement/InterestManager.java
  2. 2
      src/engine/net/client/handlers/ArcLoginNotifyMsgHandler.java
  3. 2
      src/engine/net/client/handlers/RequestEnterWorldHandler.java
  4. 12
      src/engine/objects/PlayerCharacter.java
  5. 3
      src/engine/server/world/WorldServer.java

8
src/engine/InterestManagement/InterestManager.java

@ -8,14 +8,10 @@ @@ -8,14 +8,10 @@
package engine.InterestManagement;
import com.sun.corba.se.spi.orbutil.fsm.ActionBase;
import com.sun.corba.se.spi.orbutil.fsm.FSM;
import com.sun.corba.se.spi.orbutil.fsm.Input;
import engine.Enum;
import engine.Enum.DispatchChannel;
import engine.Enum.GameObjectType;
import engine.gameManager.GroupManager;
import engine.gameManager.PowersManager;
import engine.gameManager.SessionManager;
import engine.job.JobScheduler;
import engine.jobs.RefreshGroupJob;
@ -28,13 +24,11 @@ import engine.net.client.msg.LoadStructureMsg; @@ -28,13 +24,11 @@ import engine.net.client.msg.LoadStructureMsg;
import engine.net.client.msg.MoveToPointMsg;
import engine.net.client.msg.UnloadObjectsMsg;
import engine.objects.*;
import engine.powers.ActionsBase;
import engine.server.MBServerStatics;
import org.pmw.tinylog.Logger;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Map;
import static engine.math.FastMath.sqr;
@ -216,7 +210,7 @@ public enum InterestManager implements Runnable { @@ -216,7 +210,7 @@ public enum InterestManager implements Runnable {
if (origin == null)
continue;
if (!playerCharacter.isEnteredWorld())
if (!playerCharacter.enteredWorld)
continue;
if (playerCharacter.getTeleportLock().readLock().tryLock()) {

2
src/engine/net/client/handlers/ArcLoginNotifyMsgHandler.java

@ -53,7 +53,7 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler { @@ -53,7 +53,7 @@ public class ArcLoginNotifyMsgHandler extends AbstractClientMsgHandler {
GroupManager.RefreshOthersGroupList(player);
}
player.setEnteredWorld(true);
player.enteredWorld = true;
// Set player active
player.resetRegenUpdateTime();
player.setActive(true);

2
src/engine/net/client/handlers/RequestEnterWorldHandler.java

@ -57,7 +57,7 @@ public class RequestEnterWorldHandler extends AbstractClientMsgHandler { @@ -57,7 +57,7 @@ public class RequestEnterWorldHandler extends AbstractClientMsgHandler {
return true;
}
player.setEnteredWorld(false);
player.enteredWorld = false;
Account acc = SessionManager.getAccount(origin);

12
src/engine/objects/PlayerCharacter.java

@ -160,7 +160,7 @@ public class PlayerCharacter extends AbstractCharacter { @@ -160,7 +160,7 @@ public class PlayerCharacter extends AbstractCharacter {
private boolean asciiLastName = true;
private int spamCount = 0;
private boolean initialized = false;
private boolean enteredWorld = false;
public boolean enteredWorld = false;
private boolean canBreathe = true;
private String hash;
private ArrayList<GuildHistory> guildHistory = new ArrayList<>();
@ -4852,7 +4852,7 @@ public class PlayerCharacter extends AbstractCharacter { @@ -4852,7 +4852,7 @@ public class PlayerCharacter extends AbstractCharacter {
//if(this.isBoxed && this.containsEffect(429611355) == false) {//pathfinding
// PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 429611355, 40, false);
//}
if(this.isEnteredWorld() && this.isActive() && this.isAlive()){
if(enteredWorld && this.isActive() && this.isAlive()){
if( this.getLevel() < 10) {
this.setLevel((short) 10);
boolean hasConc = false;
@ -5554,14 +5554,6 @@ public class PlayerCharacter extends AbstractCharacter { @@ -5554,14 +5554,6 @@ public class PlayerCharacter extends AbstractCharacter {
this.centerHeight = centerHeight;
}
public boolean isEnteredWorld() {
return enteredWorld;
}
public void setEnteredWorld(boolean enteredWorld) {
this.enteredWorld = enteredWorld;
}
public long getChannelMute() {
return channelMute;
}

3
src/engine/server/world/WorldServer.java

@ -23,7 +23,6 @@ import engine.gameManager.*; @@ -23,7 +23,6 @@ import engine.gameManager.*;
import engine.job.JobContainer;
import engine.job.JobScheduler;
import engine.jobs.LogoutCharacterJob;
import engine.math.Vector3fImmutable;
import engine.mobileAI.Threads.MobAIThread;
import engine.mobileAI.Threads.MobRespawnThread;
import engine.net.Dispatch;
@ -834,7 +833,7 @@ public class WorldServer { @@ -834,7 +833,7 @@ public class WorldServer {
loadedMob.playerAgroMap.remove(player.getObjectUUID());
}
player.getTimestamps().put("logout", System.currentTimeMillis());
player.setEnteredWorld(false);
player.enteredWorld = false;
// remove from simulation and zero current loc

Loading…
Cancel
Save