summaryrefslogtreecommitdiffstats
path: root/source/Plugin_NewLua.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-25 11:12:29 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-01-25 11:12:29 +0100
commit2960f43782f0ec46e5ad494544a0f76c6a6741df (patch)
treec0cfc25589990f7f85d01002db95dd0093e84d71 /source/Plugin_NewLua.cpp
parentAnvilStats: ignoring png files (diff)
downloadcuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.tar
cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.tar.gz
cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.tar.bz2
cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.tar.lz
cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.tar.xz
cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.tar.zst
cuberite-2960f43782f0ec46e5ad494544a0f76c6a6741df.zip
Diffstat (limited to 'source/Plugin_NewLua.cpp')
-rw-r--r--source/Plugin_NewLua.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Plugin_NewLua.cpp b/source/Plugin_NewLua.cpp
index fca1d5150..2214e701c 100644
--- a/source/Plugin_NewLua.cpp
+++ b/source/Plugin_NewLua.cpp
@@ -219,7 +219,7 @@ bool cPlugin_NewLua::OnChunkGenerated(cWorld * a_World, int a_ChunkX, int a_Chun
-bool cPlugin_NewLua::OnChunkGenerating(cWorld * a_World, int a_ChunkX, int a_ChunkZ, cLuaChunk * a_pLuaChunk)
+bool cPlugin_NewLua::OnChunkGenerating(cWorld * a_World, int a_ChunkX, int a_ChunkZ, cChunkDesc * a_pLuaChunk)
{
cCSLock Lock(m_CriticalSection);
const char * FnName = GetHookFnName(cPluginManager::HOOK_CHUNK_GENERATING);
@@ -232,7 +232,7 @@ bool cPlugin_NewLua::OnChunkGenerating(cWorld * a_World, int a_ChunkX, int a_Chu
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");
+ tolua_pushusertype(m_LuaState, a_pLuaChunk, "cChunkDesc");
if (!CallFunction(4, 1, FnName))
{