Moves activeTime and openTime into the StargateGateConfig
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user