Got rid of "self" in plugins, which is deprecated anyway
Fixed bug in many On* hooks that did not pop the return values from the stack Fixed Plugin:Call() that removed one too many items from the stack git-svn-id: http://mc-server.googlecode.com/svn/trunk@950 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -808,7 +808,7 @@ static int tolua_cPlugin_Call(lua_State* tolua_S)
|
||||
return 0;
|
||||
}
|
||||
|
||||
lua_pop(targetState, nresults+1); // I have no idea what I'm doing, but it works
|
||||
lua_pop(targetState, nresults); // I have no idea what I'm doing, but it works
|
||||
|
||||
return nresults;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user