forked from MagicBane/Server
null fix
This commit is contained in:
@@ -4813,11 +4813,14 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
updateBlessingMessage();
|
||||
|
||||
this.safeZone = this.isInSafeZone();
|
||||
boolean forbiddenRealm = false;
|
||||
if(Realm.overridePlacement(getRealmAtLocation(this.getLoc()).getRealmName()))
|
||||
forbiddenRealm = true;
|
||||
if(forbiddenRealm && this.containsEffect(1672601862) == false) {//Deathshroud
|
||||
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
|
||||
Realm currentRealm = getRealmAtLocation(this.getLoc());
|
||||
if(currentRealm != null) {
|
||||
boolean forbiddenRealm = false;
|
||||
if (Realm.overridePlacement(currentRealm.getRealmName()))
|
||||
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
|
||||
// PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 429611355, 40, false);
|
||||
|
||||
Reference in New Issue
Block a user