0

textures: use new name for path block on 1.17

Fixes rendering with 1.17 textures and no 1.16 fallback,
breaks rendering for anything using 1.16 textures.
This commit is contained in:
Nicolas F
2021-06-10 17:22:23 +02:00
parent 3488450531
commit 1beb5799b5

View File

@@ -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 # dirt.png is 16 pixels tall, so we need to crop it before building full block
side = side.crop((0, 1, 16, 16)) side = side.crop((0, 1, 16, 16))
else: else:
top = self.load_image_texture("assets/minecraft/textures/block/grass_path_top.png") top = self.load_image_texture("assets/minecraft/textures/block/dirt_path_top.png")
side = self.load_image_texture("assets/minecraft/textures/block/grass_path_side.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 # 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 # just shift the top image down 1 pixel