From e71a843df29042c87c6be5e85684aaab8fba841c Mon Sep 17 00:00:00 2001 From: Karl Kuhn Date: Wed, 11 Apr 2018 11:10:09 -0400 Subject: [PATCH] issues-1411: Block Addition: Add inverted daylight sensor. --- overviewer_core/textures.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/overviewer_core/textures.py b/overviewer_core/textures.py index 93de477..d5b3afb 100644 --- a/overviewer_core/textures.py +++ b/overviewer_core/textures.py @@ -3906,9 +3906,12 @@ block(blockid=123, top_image="assets/minecraft/textures/blocks/redstone_lamp_off block(blockid=124, top_image="assets/minecraft/textures/blocks/redstone_lamp_on.png") # daylight sensor. -@material(blockid=151, transparent=True) +@material(blockid=[151,178], transparent=True) def daylight_sensor(self, blockid, data): - top = self.load_image_texture("assets/minecraft/textures/blocks/daylight_detector_top.png") + if blockid == 151: # daylight sensor + top = self.load_image_texture("assets/minecraft/textures/blocks/daylight_detector_top.png") + else: # inverted daylight sensor + top = self.load_image_texture("assets/minecraft/textures/blocks/daylight_detector_inverted_top.png") side = self.load_image_texture("assets/minecraft/textures/blocks/daylight_detector_side.png") # cut the side texture in half