diff --git a/common/src/main/kotlin/quaedam/shell/ProjectionShellMutex.kt b/common/src/main/kotlin/quaedam/shell/ProjectionShellMutex.kt index 74e21ff..2cd214a 100644 --- a/common/src/main/kotlin/quaedam/shell/ProjectionShellMutex.kt +++ b/common/src/main/kotlin/quaedam/shell/ProjectionShellMutex.kt @@ -14,7 +14,7 @@ object ProjectionShellMutex { TickEvent.SERVER_POST.register { server -> val mutex = (server as ProjectionShellMutexAccessor).`quaedam$getProjectionShellMutex`() val currentTime = System.currentTimeMillis() - mutex.forEach { pos, lock -> + mutex.forEach { (pos, lock) -> if (currentTime - lock.time > 60 * 1000) { mutex.remove(pos) ProjectionShell.channel.sendToPlayer(lock.player, ClientboundPSHLockRevokePacket)