From e4e2bae99e74fd815cf08f8f182bd17600c7eca4 Mon Sep 17 00:00:00 2001 From: lother Date: Fri, 4 Mar 2016 23:29:25 +0800 Subject: [PATCH] add end_gateway --- overviewer_core/textures.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/overviewer_core/textures.py b/overviewer_core/textures.py index 01b78d9..f174c02 100644 --- a/overviewer_core/textures.py +++ b/overviewer_core/textures.py @@ -3787,8 +3787,8 @@ def cauldron(self, blockid, data): return img -# end portal -@material(blockid=119, transparent=True, nodata=True) +# end portal and end_gateway +@material(blockid=[119,209], transparent=True, nodata=True) def end_portal(self, blockid, data): img = Image.new("RGBA", (24,24), self.bgcolor) # generate a black texure with white, blue and grey dots resembling stars @@ -3798,7 +3798,9 @@ def end_portal(self, blockid, data): x = randint(0,15) y = randint(0,15) t.putpixel((x,y),color) - + if blockid == 209: # end_gateway + return self.build_block(t, t) + t = self.transform_image_top(t) alpha_over(img, t, (0,0), t)