Skip to content

Commit

Permalink
textures: use new name for path block on 1.17
Browse files Browse the repository at this point in the history
Fixes rendering with 1.17 textures and no 1.16 fallback,
breaks rendering for anything using 1.16 textures.
  • Loading branch information
CounterPillow committed Jun 10, 2021
1 parent 3488450 commit 1beb579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions overviewer_core/textures.py
Original file line number Diff line number Diff line change
Expand Up @@ -2820,8 +2820,8 @@ def farmland(self, blockid, data):
# dirt.png is 16 pixels tall, so we need to crop it before building full block
side = side.crop((0, 1, 16, 16))
else:
top = self.load_image_texture("assets/minecraft/textures/block/grass_path_top.png")
side = self.load_image_texture("assets/minecraft/textures/block/grass_path_side.png")
top = self.load_image_texture("assets/minecraft/textures/block/dirt_path_top.png")
side = self.load_image_texture("assets/minecraft/textures/block/dirt_path_side.png")
# side already has 1 transparent pixel at the top, so it doesn't need to be modified
# just shift the top image down 1 pixel

Expand Down

0 comments on commit 1beb579

Please sign in to comment.