сыс
This commit is contained in:
parent
5f652e7714
commit
5d8147a8f9
@ -27,7 +27,7 @@ private val preServerTickTimers = TimerQueue()
|
|||||||
private val postServerTickTimers = TimerQueue()
|
private val postServerTickTimers = TimerQueue()
|
||||||
|
|
||||||
fun addPreTickTimer(inTicks: Int, callback: Runnable): TimerQueue.Timer? {
|
fun addPreTickTimer(inTicks: Int, callback: Runnable): TimerQueue.Timer? {
|
||||||
if (SERVER_IS_LIVE) {
|
if (!SERVER_IS_LIVE) {
|
||||||
LOGGER.error("Refusing to add timer $callback in ticks $inTicks while server is dying", IllegalStateException("Server is stopping"))
|
LOGGER.error("Refusing to add timer $callback in ticks $inTicks while server is dying", IllegalStateException("Server is stopping"))
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
@ -36,7 +36,7 @@ fun addPreTickTimer(inTicks: Int, callback: Runnable): TimerQueue.Timer? {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun addPostTickTimer(inTicks: Int, callback: Runnable): TimerQueue.Timer? {
|
fun addPostTickTimer(inTicks: Int, callback: Runnable): TimerQueue.Timer? {
|
||||||
if (SERVER_IS_LIVE) {
|
if (!SERVER_IS_LIVE) {
|
||||||
LOGGER.error("Refusing to add ticker $callback in ticks $inTicks while server is dying", IllegalStateException("Server is stopping"))
|
LOGGER.error("Refusing to add ticker $callback in ticks $inTicks while server is dying", IllegalStateException("Server is stopping"))
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user