]> git.lizzy.rs Git - LightOverlay.git/commitdiff
Fix cache while disabled.
authorshedaniel <daniel@shedaniel.me>
Wed, 29 Apr 2020 17:02:41 +0000 (01:02 +0800)
committershedaniel <daniel@shedaniel.me>
Wed, 29 Apr 2020 17:02:41 +0000 (01:02 +0800)
build.gradle
src/main/java/me/shedaniel/lightoverlay/LightOverlayClient.java

index 8b2329d0e6fe1d3d739fb0dc49b9584c93c7c2fc..f1a0fce279e501f0e317900d4cda6530ca767969 100644 (file)
@@ -16,7 +16,7 @@ plugins {
 apply plugin: 'net.minecraftforge.gradle'
 apply plugin: 'eclipse'
 
-version = "4.6"
+version = "4.6.1"
 group = "me.shedaniel" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
 archivesBaseName = "LightOverlay"
 
index f8b6c37de2faa54d3a468bfd96a5ac29407f4a27..acd825593e438ba7efb934b55096b884e4c6407d 100644 (file)
@@ -268,6 +268,7 @@ public class LightOverlayClient {
                 ticks++;
                 if (minecraft.player == null || !enabled) {
                     POS.clear();
+                    CHUNK_MAP.clear();
                 } else {
                     ClientPlayerEntity player = minecraft.player;
                     ClientWorld world = minecraft.world;