瀏覽代碼

Fix cache while disabled.

shedaniel 5 年之前
父節點
當前提交
81e295b60b
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      build.gradle
  2. 1 0
      src/main/java/me/shedaniel/lightoverlay/LightOverlayClient.java

+ 1 - 1
build.gradle

@@ -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"
 

+ 1 - 0
src/main/java/me/shedaniel/lightoverlay/LightOverlayClient.java

@@ -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;