1
0

BLOCKTYPE and NIBBLETYPE are finally exported in Lua API as numbers, not usertypes

git-svn-id: http://mc-server.googlecode.com/svn/trunk@642 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2012-07-02 16:38:30 +00:00
parent bf13084f1f
commit 3cb643c9cb
4 changed files with 36 additions and 22 deletions

View File

@@ -3,22 +3,7 @@ $#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same acr
$#include "tolua_base.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// NOTE: when changing the BLOCKTYPE or NIBBLETYPE types, you need to change them both in this file and in ChunkDef.h
// (for some reason, just including the ChunkDef.h file doesn't work in ToLua)
typedef char BLOCKTYPE;
typedef unsigned char NIBBLETYPE;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$cfile "ChunkDef.h"
$cfile "cTorch.h"
$cfile "cStairs.h"