Browse Source

null fix

birdbane
FatBoy-DOTC 8 months ago
parent
commit
8c5e402bb6
  1. 13
      src/engine/objects/PlayerCharacter.java

13
src/engine/objects/PlayerCharacter.java

@ -4813,11 +4813,14 @@ public class PlayerCharacter extends AbstractCharacter {
updateBlessingMessage(); updateBlessingMessage();
this.safeZone = this.isInSafeZone(); this.safeZone = this.isInSafeZone();
boolean forbiddenRealm = false; Realm currentRealm = getRealmAtLocation(this.getLoc());
if(Realm.overridePlacement(getRealmAtLocation(this.getLoc()).getRealmName())) if(currentRealm != null) {
forbiddenRealm = true; boolean forbiddenRealm = false;
if(forbiddenRealm && this.containsEffect(1672601862) == false) {//Deathshroud if (Realm.overridePlacement(currentRealm.getRealmName()))
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false); forbiddenRealm = true;
if (forbiddenRealm && this.containsEffect(1672601862) == false) {//Deathshroud
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
}
} }
//if(this.isBoxed && this.containsEffect(429611355) == false) {//pathfinding //if(this.isBoxed && this.containsEffect(429611355) == false) {//pathfinding
// PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 429611355, 40, false); // PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 429611355, 40, false);

Loading…
Cancel
Save