From bda742f7f40aaab64b24eaa01cc77e50d6355f35 Mon Sep 17 00:00:00 2001 From: Bixilon Date: Thu, 12 May 2022 10:10:39 +0200 Subject: [PATCH] fix some wrong comments and some bugs --- .../minosoft/gui/rendering/system/window/GLFWWindow.kt | 8 ++++---- .../bixilon/minosoft/gui/rendering/world/WorldRenderer.kt | 2 +- .../protocol/packets/s2c/play/chunk/ChunksS2CP.kt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/de/bixilon/minosoft/gui/rendering/system/window/GLFWWindow.kt b/src/main/java/de/bixilon/minosoft/gui/rendering/system/window/GLFWWindow.kt index 9a500e1e9..a5b0f731c 100644 --- a/src/main/java/de/bixilon/minosoft/gui/rendering/system/window/GLFWWindow.kt +++ b/src/main/java/de/bixilon/minosoft/gui/rendering/system/window/GLFWWindow.kt @@ -137,11 +137,11 @@ class GLFWWindow( // So you found that option... // Good search, maybe I should hide it a bit more // about v*s*y*n*c: Why the hell would you want to disable it? - // it makes no sense, you are always 50ms behind, because of position interpolating + // it makes no sense, you are always 50ms behind, because of position interpolation // same applied to minecraft - // more fps? flexing? enable exper*imental f|p|s. - // to benchmark, yes. understandable. search in the config and set it to 0 - // to compare with minecraft? not needed. + // want more fps? flexing? enable exper*imental f|p|s. + // want to benchmark, yes. understandable. search in the config and set it to 0 + // if you want to compare this with minecraft? not needed. glfwSwapInterval(value) field = value } diff --git a/src/main/java/de/bixilon/minosoft/gui/rendering/world/WorldRenderer.kt b/src/main/java/de/bixilon/minosoft/gui/rendering/world/WorldRenderer.kt index d0e8e8907..5b0ff10f4 100644 --- a/src/main/java/de/bixilon/minosoft/gui/rendering/world/WorldRenderer.kt +++ b/src/main/java/de/bixilon/minosoft/gui/rendering/world/WorldRenderer.kt @@ -518,7 +518,7 @@ class WorldRenderer( } if (queueSet.remove(item)) { - queueSet.remove(item) + queue.remove(item) } if (meshesToLoadSet.remove(item)) { diff --git a/src/main/java/de/bixilon/minosoft/protocol/packets/s2c/play/chunk/ChunksS2CP.kt b/src/main/java/de/bixilon/minosoft/protocol/packets/s2c/play/chunk/ChunksS2CP.kt index 6ee376806..5d4759162 100644 --- a/src/main/java/de/bixilon/minosoft/protocol/packets/s2c/play/chunk/ChunksS2CP.kt +++ b/src/main/java/de/bixilon/minosoft/protocol/packets/s2c/play/chunk/ChunksS2CP.kt @@ -26,7 +26,7 @@ import de.bixilon.minosoft.util.logging.LogLevels import de.bixilon.minosoft.util.logging.LogMessageType import java.util.* -@LoadPacket +@LoadPacket(lowPriority = true) class ChunksS2CP : PlayS2CPacket { val data: MutableMap = mutableMapOf()