removed historical, seperate mask from texture tuples (Issue #516)
This commit is contained in:
@@ -450,8 +450,8 @@ chunk_render(PyObject *self, PyObject *args) {
|
||||
PyObject *src, *mask, *mask_light;
|
||||
int randx = 0, randy = 0;
|
||||
src = PyTuple_GetItem(t, 0);
|
||||
mask = PyTuple_GetItem(t, 1);
|
||||
mask_light = PyTuple_GetItem(t, 2);
|
||||
mask = PyTuple_GetItem(t, 0);
|
||||
mask_light = PyTuple_GetItem(t, 1);
|
||||
|
||||
if (mask == Py_None)
|
||||
mask = src;
|
||||
|
||||
@@ -517,7 +517,7 @@ def generate_opaque_mask(img):
|
||||
def generate_texture_tuple(img, blockid):
|
||||
""" This takes an image and returns the needed tuple for the
|
||||
blockmap list and specialblockmap dictionary."""
|
||||
return (img.convert("RGB"), img.split()[3], generate_opaque_mask(img))
|
||||
return (img, generate_opaque_mask(img))
|
||||
|
||||
def generate_special_texture(blockID, data):
|
||||
"""Generates a special texture, such as a correctly facing minecraft track"""
|
||||
|
||||
Reference in New Issue
Block a user