diff options
author | Mattes D <github@xoft.cz> | 2016-06-12 16:53:24 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-06-27 20:51:51 +0200 |
commit | 24853397ef4648155d886b112e00c3e2c3d1e900 (patch) | |
tree | 8fb7a0da6418b00e9d9a29dd3fca008df12aae78 /src/Bindings/ManualBindings_World.cpp | |
parent | Changed cLuaWindow callbacks to use cLuaState::cCallback. (diff) | |
download | cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.tar cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.tar.gz cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.tar.bz2 cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.tar.lz cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.tar.xz cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.tar.zst cuberite-24853397ef4648155d886b112e00c3e2c3d1e900.zip |
Diffstat (limited to 'src/Bindings/ManualBindings_World.cpp')
-rw-r--r-- | src/Bindings/ManualBindings_World.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Bindings/ManualBindings_World.cpp b/src/Bindings/ManualBindings_World.cpp index 3faf038aa..3f9f5f94d 100644 --- a/src/Bindings/ManualBindings_World.cpp +++ b/src/Bindings/ManualBindings_World.cpp @@ -103,7 +103,9 @@ static int tolua_cWorld_ChunkStay(lua_State * tolua_S) return 0; } - ChunkStay->Enable(*World->GetChunkMap(), 3, 4); + cLuaState::cCallbackPtr onChunkAvailable, onAllChunksAvailable; + L.GetStackValues(3, onChunkAvailable, onAllChunksAvailable); // Callbacks may be unassigned at all - as a request to load / generate chunks + ChunkStay->Enable(*World->GetChunkMap(), onChunkAvailable, onAllChunksAvailable); return 0; } |