Sets the always on option to true for bungee portals and removes some unnecessary checks

This commit is contained in:
2021-11-05 21:40:06 +01:00
parent 80ff241d4b
commit 0297d62d6d
6 changed files with 13 additions and 13 deletions

View File

@@ -28,9 +28,9 @@ public class PortalOptions {
Stargate.debug("Portal", "Can not create a non-fixed always-on gate. Setting AlwaysOn = false");
}
if (this.isRandom() && !this.isAlwaysOn()) {
if ((this.isRandom() || this.isBungee()) && !this.isAlwaysOn()) {
this.options.put(PortalOption.ALWAYS_ON, true);
Stargate.debug("Portal", "Gate marked as random, set to always-on");
Stargate.debug("Portal", "Gate marked as random or bungee, set to always-on");
}
}