From 91b1618370b9c350fac52b5bfb5ec7cbd85b525d Mon Sep 17 00:00:00 2001 From: Jens Date: Fri, 21 Feb 2020 00:16:57 +0100 Subject: [PATCH] Remove broken redundant code in Textures.generate - Introduced in 2012 - Never executed because the value is always set to 24 in __init__ - Code doesn't work (probably because of other changes) --- overviewer_core/textures.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/overviewer_core/textures.py b/overviewer_core/textures.py index 8c701dab1..1e3661d27 100644 --- a/overviewer_core/textures.py +++ b/overviewer_core/textures.py @@ -135,18 +135,6 @@ def generate(self): tex = texgen(self, blockid, data) self.blockmap[blockid * max_data + data] = self.generate_texture_tuple(tex) - if self.texture_size != 24: - # rescale biome grass - self.biome_grass_texture = self.biome_grass_texture.resize(self.texture_dimensions, Image.ANTIALIAS) - - # rescale the rest - for i, tex in enumerate(blockmap): - if tex is None: - continue - block = tex[0] - scaled_block = block.resize(self.texture_dimensions, Image.ANTIALIAS) - blockmap[i] = self.generate_texture_tuple(scaled_block) - self.generated = True ##