0

the rest of the render modes are now working

This commit is contained in:
Aaron Griffith
2012-01-06 20:38:50 -05:00
parent 4eaf103213
commit 1f2c1a281e
5 changed files with 21 additions and 20 deletions

View File

@@ -69,8 +69,8 @@ rendermode_spawn_start(void *data, RenderState *state, PyObject *options) {
/* now do custom initializations */
self = (RenderModeSpawn *)data;
self->blocklight = PyObject_GetAttrString(state->self, "blocklight");
self->skylight = PyObject_GetAttrString(state->self, "skylight");
self->blocklight = get_chunk_data(state, CURRENT, BLOCKLIGHT);
self->skylight = get_chunk_data(state, CURRENT, SKYLIGHT);
/* setup custom color */
self->parent.get_color = get_color;