try to fix #43 and try to fix #76

This commit is contained in:
creeper123123321 2021-02-22 12:22:17 -03:00
parent 94cfd7fb1d
commit a901f1fc31
2 changed files with 5 additions and 5 deletions

View File

@ -36,9 +36,9 @@ repositories {
}
dependencies {
implementation("us.myles:viaversion:3.2.1") { isTransitive = false }
implementation("nl.matsv:viabackwards-all:3.2.0") { isTransitive = false }
implementation("de.gerrygames:viarewind-all:1.5.2") { isTransitive = false }
implementation("us.myles:viaversion:3.3.0-21w07a") { isTransitive = false }
implementation("nl.matsv:viabackwards-all:3.3.0-21w06a") { isTransitive = false }
implementation("de.gerrygames:viarewind-all:1.5.4-SNAPSHOT") { isTransitive = false }
implementation("io.netty:netty-all:4.1.58.Final")
implementation("org.yaml:snakeyaml:1.26")
implementation("com.google.guava:guava:30.0-jre")

View File

@ -11,7 +11,7 @@ data class WebClient(
val ws: WebSocketServerSession,
val state: WebState,
) {
val listenedIds: MutableSet<UUID> = mutableSetOf()
val listenedIds: MutableSet<UUID> = Collections.newSetFromMap(ConcurrentHashMap())
val rateLimiter = RateLimiter.create(VIAaaSConfig.rateLimitWs)
fun listenId(uuid: UUID): Boolean {