0

moved trasparent_blocks, etc. into textures.py (Issue #516)

This commit is contained in:
Aaron Griffith
2011-10-31 13:28:28 -04:00
parent 64e67cc827
commit 69c109fc05
5 changed files with 23 additions and 23 deletions

View File

@@ -53,7 +53,7 @@ PyObject *init_chunk_render(PyObject *self, PyObject *args) {
specialblockmap = PyObject_GetAttrString(textures, "specialblockmap");
if (!specialblockmap)
return NULL;
transparent_blocks = PyObject_GetAttrString(chunk_mod, "transparent_blocks");
transparent_blocks = PyObject_GetAttrString(textures, "transparent_blocks");
if (!transparent_blocks)
return NULL;

View File

@@ -38,8 +38,8 @@ rendermode_overlay_start(void *data, RenderState *state, PyObject *options) {
self->white_color = PyObject_GetAttrString(state->chunk, "white_color");
self->solid_blocks = PyObject_GetAttrString(state->chunk, "solid_blocks");
self->fluid_blocks = PyObject_GetAttrString(state->chunk, "fluid_blocks");
self->solid_blocks = PyObject_GetAttrString(state->textures, "solid_blocks");
self->fluid_blocks = PyObject_GetAttrString(state->textures, "fluid_blocks");
self->get_color = get_color;

View File

@@ -72,7 +72,7 @@ rendermode_spawn_start(void *data, RenderState *state, PyObject *options) {
/* now do custom initializations */
self = (RenderModeSpawn *)data;
self->nospawn_blocks = PyObject_GetAttrString(state->chunk, "nospawn_blocks");
self->nospawn_blocks = PyObject_GetAttrString(state->textures, "nospawn_blocks");
self->blocklight = PyObject_GetAttrString(state->self, "blocklight");
self->skylight = PyObject_GetAttrString(state->self, "skylight");