From 79754b367c1ee7e29dd436236ea4617e1f7480b4 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Mon, 25 Mar 2019 21:42:08 +0100 Subject: [PATCH] world: bandaid fix for double stone brick slabs This code badly needs a rewrite, we're just altering code path and data all over the place and this isn't okay. --- overviewer_core/world.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/overviewer_core/world.py b/overviewer_core/world.py index 93a7c80..0f2e8a6 100644 --- a/overviewer_core/world.py +++ b/overviewer_core/world.py @@ -835,7 +835,10 @@ class RegionSet(object): if palette_entry['Properties']['type'] == 'top': data += 8 elif palette_entry['Properties']['type'] == 'double': - block = 125 + if 'oak' in key: + block = 125 + elif key == 'minecraft:stone_brick_slab': + block = 98 elif key in ['minecraft:ladder', 'minecraft:chest', 'minecraft:ender_chest', 'minecraft:trapped_chest', 'minecraft:furnace']: facing = palette_entry['Properties']['facing'] data = {'north': 2, 'south': 3, 'west': 4, 'east': 5}[facing]