summaryrefslogtreecommitdiffstats
path: root/source/cPlugin_NewLua.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-14 19:30:37 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-14 19:30:37 +0200
commit0f39e9b10b80efadc82e0329c977c9fe00112489 (patch)
treef8d262c4f4bf3a31ad3eea57cdd4cf8b79d1f658 /source/cPlugin_NewLua.cpp
parentRemoved recipes.txt from nightbuild packing list (diff)
downloadcuberite-0f39e9b10b80efadc82e0329c977c9fe00112489.tar
cuberite-0f39e9b10b80efadc82e0329c977c9fe00112489.tar.gz
cuberite-0f39e9b10b80efadc82e0329c977c9fe00112489.tar.bz2
cuberite-0f39e9b10b80efadc82e0329c977c9fe00112489.tar.lz
cuberite-0f39e9b10b80efadc82e0329c977c9fe00112489.tar.xz
cuberite-0f39e9b10b80efadc82e0329c977c9fe00112489.tar.zst
cuberite-0f39e9b10b80efadc82e0329c977c9fe00112489.zip
Diffstat (limited to 'source/cPlugin_NewLua.cpp')
-rw-r--r--source/cPlugin_NewLua.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/cPlugin_NewLua.cpp b/source/cPlugin_NewLua.cpp
index 92764a368..dd6b61b9b 100644
--- a/source/cPlugin_NewLua.cpp
+++ b/source/cPlugin_NewLua.cpp
@@ -388,12 +388,13 @@ void cPlugin_NewLua::OnChunkGenerated(cWorld * a_World, int a_ChunkX, int a_Chun
-bool cPlugin_NewLua::OnChunkGenerating( int a_ChunkX, int a_ChunkZ, cLuaChunk * a_pLuaChunk )
+bool cPlugin_NewLua::OnChunkGenerating(cWorld * a_World, int a_ChunkX, int a_ChunkZ, cLuaChunk * a_pLuaChunk)
{
cCSLock Lock(m_CriticalSection);
if (!PushFunction("OnChunkGenerating"))
return false;
+ tolua_pushusertype(m_LuaState, a_World, "cWorld");
tolua_pushnumber (m_LuaState, a_ChunkX);
tolua_pushnumber (m_LuaState, a_ChunkZ);
tolua_pushusertype(m_LuaState, a_pLuaChunk, "cLuaChunk");