diff options
| author | ohowe <42757516+carelesshippo@users.noreply.github.com> | 2021-05-05 18:13:28 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-05 18:13:28 -0600 |
| commit | 4d9e538ced80728bca74491698347333f515bfcc (patch) | |
| tree | e272c853cb9ebe7eb8334e405060bc820ee129fd /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java | |
| parent | 59d3bf67d93d0204d0dc493508d9d9c2a24cd10b (diff) | |
| parent | 9aa7b49d224bfde055e12bc84f6908ba0a50090d (diff) | |
| download | notenoughupdates-4d9e538ced80728bca74491698347333f515bfcc.tar.gz notenoughupdates-4d9e538ced80728bca74491698347333f515bfcc.tar.bz2 notenoughupdates-4d9e538ced80728bca74491698347333f515bfcc.zip | |
Merge pull request #2 from Moulberry/master
x
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java index caa1441c..65b47ec0 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/DwarvenMinesTextures.java @@ -50,6 +50,7 @@ public class DwarvenMinesTextures { private static boolean error = false; public static int retexture(BlockPos pos) { + if(!NotEnoughUpdates.INSTANCE.config.mining.dwarvenTextures) return 0; if(error) return 0; if(Minecraft.getMinecraft().theWorld == null) return 0; @@ -220,6 +221,8 @@ public class DwarvenMinesTextures { //Don't render clay - mesaPlateau_F public static void tick() { + if(!NotEnoughUpdates.INSTANCE.config.mining.dwarvenTextures) return; + time = System.currentTimeMillis(); Set<ChunkCoordIntPair> remove = new HashSet<>(); for(Map.Entry<ChunkCoordIntPair, Long> entry : lastRetextureCheck.entrySet()) { |
