Moves activeTime and openTime into the StargateGateConfig

This commit is contained in:
2021-10-23 14:35:07 +02:00
parent deba2e5c2c
commit b7998023f5
3 changed files with 22 additions and 24 deletions

View File

@ -20,7 +20,7 @@ public class StarGateThread implements Runnable {
if (portal.getOptions().isAlwaysOn() || !portal.isOpen()) {
continue;
}
if (time > portal.getActivatedTime() + Stargate.getOpenTime()) {
if (time > portal.getActivatedTime() + Stargate.getGateConfig().getOpenTime()) {
portal.getPortalOpener().closePortal(false);
iterator.remove();
}
@ -31,7 +31,7 @@ public class StarGateThread implements Runnable {
if (!portal.getPortalActivator().isActive()) {
continue;
}
if (time > portal.getActivatedTime() + Stargate.getActiveTime()) {
if (time > portal.getActivatedTime() + Stargate.getGateConfig().getActiveTime()) {
portal.getPortalActivator().deactivate();
iterator.remove();
}