Browse Source

Fix cache while disabled.

shedaniel 5 years ago
parent
commit
81e295b60b
2 changed files with 2 additions and 1 deletions
  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: 'net.minecraftforge.gradle'
 apply plugin: 'eclipse'
 apply plugin: 'eclipse'
 
 
-version = "4.6"
+version = "4.6.1"
 group = "me.shedaniel" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
 group = "me.shedaniel" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
 archivesBaseName = "LightOverlay"
 archivesBaseName = "LightOverlay"
 
 

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

@@ -268,6 +268,7 @@ public class LightOverlayClient {
                 ticks++;
                 ticks++;
                 if (minecraft.player == null || !enabled) {
                 if (minecraft.player == null || !enabled) {
                     POS.clear();
                     POS.clear();
+                    CHUNK_MAP.clear();
                 } else {
                 } else {
                     ClientPlayerEntity player = minecraft.player;
                     ClientPlayerEntity player = minecraft.player;
                     ClientWorld world = minecraft.world;
                     ClientWorld world = minecraft.world;