1.5 Pre-Release updates/fixes
Fix for Ender Portal Frame, w/eye of ender, in all orientations Minor fix for Comparator back torches Update to lighting on Quartz stairs Added Quartz Half Slabs
This commit is contained in:
@@ -159,7 +159,7 @@ get_lighting_color(RenderPrimitiveLighting *self, RenderState *state,
|
|||||||
|
|
||||||
/* special half-step handling, stairs handling */
|
/* special half-step handling, stairs handling */
|
||||||
if (block == 44 || block == 53 || block == 67 || block == 108 || block == 109 || block == 114 ||
|
if (block == 44 || block == 53 || block == 67 || block == 108 || block == 109 || block == 114 ||
|
||||||
block == 128 || block == 134 || block == 135 || block == 136) {
|
block == 128 || block == 134 || block == 135 || block == 136 || block == 156) {
|
||||||
unsigned int upper_block;
|
unsigned int upper_block;
|
||||||
|
|
||||||
/* stairs and half-blocks take the skylevel from the upper block if it's transparent */
|
/* stairs and half-blocks take the skylevel from the upper block if it's transparent */
|
||||||
@@ -170,7 +170,7 @@ get_lighting_color(RenderPrimitiveLighting *self, RenderState *state,
|
|||||||
upper_block = get_data(state, BLOCKS, x, y + upper_counter, z);
|
upper_block = get_data(state, BLOCKS, x, y + upper_counter, z);
|
||||||
} while (upper_block == 44 || upper_block == 53 || upper_block == 67 || upper_block == 108 ||
|
} while (upper_block == 44 || upper_block == 53 || upper_block == 67 || upper_block == 108 ||
|
||||||
upper_block == 109 || upper_block == 114 || upper_block == 128 || upper_block == 134 ||
|
upper_block == 109 || upper_block == 114 || upper_block == 128 || upper_block == 134 ||
|
||||||
upper_block == 135 || upper_block == 136);
|
upper_block == 135 || upper_block == 136 || upper_block == 156 );
|
||||||
if (is_transparent(upper_block)) {
|
if (is_transparent(upper_block)) {
|
||||||
skylevel = get_data(state, SKYLIGHT, x, y + upper_counter, z);
|
skylevel = get_data(state, SKYLIGHT, x, y + upper_counter, z);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1387,6 +1387,8 @@ def slabs(self, blockid, data):
|
|||||||
top = side = self.load_image_texture("textures/blocks/stonebricksmooth.png")
|
top = side = self.load_image_texture("textures/blocks/stonebricksmooth.png")
|
||||||
elif texture== 6: # nether brick slab
|
elif texture== 6: # nether brick slab
|
||||||
top = side = self.load_image_texture("textures/blocks/netherBrick.png")
|
top = side = self.load_image_texture("textures/blocks/netherBrick.png")
|
||||||
|
elif texture== 7: #quartz
|
||||||
|
top = side = self.load_image_texture("textures/blocks/quartzblock_side.png")
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@@ -3052,7 +3054,7 @@ def comparator(self, blockid, data):
|
|||||||
|
|
||||||
active_torch = build_torch(True)
|
active_torch = build_torch(True)
|
||||||
inactive_torch = build_torch(False)
|
inactive_torch = build_torch(False)
|
||||||
back_torch = active_torch if blockid == 150 else inactive_torch
|
back_torch = active_torch if (blockid == 150 or data & 0b1000 == 0b1000) else inactive_torch
|
||||||
static_torch_img = active_torch if (data & 0b100 == 0b100) else inactive_torch
|
static_torch_img = active_torch if (data & 0b100 == 0b100) else inactive_torch
|
||||||
|
|
||||||
img = self.build_full_block( (top, increment), None, None, side, side)
|
img = self.build_full_block( (top, increment), None, None, side, side)
|
||||||
@@ -3505,8 +3507,8 @@ def end_portal(self, blockid, data):
|
|||||||
|
|
||||||
return img
|
return img
|
||||||
|
|
||||||
# end portal frame
|
# end portal frame (data range 8 to get all orientations of filled)
|
||||||
@material(blockid=120, data=range(5), transparent=True)
|
@material(blockid=120, data=range(8), transparent=True)
|
||||||
def end_portal_frame(self, blockid, data):
|
def end_portal_frame(self, blockid, data):
|
||||||
# The bottom 2 bits are oritation info but seems there is no
|
# The bottom 2 bits are oritation info but seems there is no
|
||||||
# graphical difference between orientations
|
# graphical difference between orientations
|
||||||
|
|||||||
Reference in New Issue
Block a user