Browse Source

optimisation

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
b113b55703
  1. 6
      src/engine/objects/PlayerCharacter.java

6
src/engine/objects/PlayerCharacter.java

@ -4865,7 +4865,7 @@ public class PlayerCharacter extends AbstractCharacter { @@ -4865,7 +4865,7 @@ public class PlayerCharacter extends AbstractCharacter {
ItemFactory.fillInventory(this, 980066, 1);
}
}
if(!this.isBoxed) {
if(!this.isBoxed && System.currentTimeMillis() < this.nextBoxCheck) {
checkIfBoxed(this);
}
if(this.isBoxed) {
@ -4876,10 +4876,10 @@ public class PlayerCharacter extends AbstractCharacter { @@ -4876,10 +4876,10 @@ public class PlayerCharacter extends AbstractCharacter {
if (!this.containsEffect(1672601862)) {//Deathshroud
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
}
if(!this.getEffects().containsKey("MoveBuff")){
PowersManager.applyPower(this, this, this.loc, 1514898036, 40, false);
}
}
}else{
if(!this.title.equals(CharacterTitle.NONE)) {
this.title = CharacterTitle.NONE;
@ -4897,8 +4897,6 @@ public class PlayerCharacter extends AbstractCharacter { @@ -4897,8 +4897,6 @@ public class PlayerCharacter extends AbstractCharacter {
}
public static void checkIfBoxed(PlayerCharacter player){
if(System.currentTimeMillis() < player.nextBoxCheck)
return;
player.nextBoxCheck = System.currentTimeMillis() + 10000;
try {

Loading…
Cancel
Save