Skip to content

Commit

Permalink
v2.4.2-luajit: Enabled updates, fixed get_comp
Browse files Browse the repository at this point in the history
Ignore the CI failure, it's a test issue that will be fixed in CC:T 1.92
  • Loading branch information
MCJack123 committed Sep 8, 2020
2 parents 87bf74d + f073c27 commit fba0bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ extern "C" {

#define CRAFTOSPC_VERSION "v2.4.2-luajit"
#define CRAFTOSPC_CC_VERSION "1.91.0"
#define CRAFTOSPC_INDEV true
#define CRAFTOSPC_INDEV false

struct Computer;
typedef struct library {
Expand Down Expand Up @@ -120,7 +120,7 @@ class Value {
extern void* getCompCache_glob;
extern Computer * getCompCache_comp;
extern Computer * _get_comp(lua_State *L);
#define get_comp(L) (*(void**)(((ptrdiff_t)L) + sizeof(int) + sizeof(void*)*3 + 4) == getCompCache_glob ? getCompCache_comp : _get_comp(L))
#define get_comp(L) (*(void**)(((ptrdiff_t)L) + sizeof(void*)*3 + 3) == getCompCache_glob ? getCompCache_comp : _get_comp(L))
#else
inline Computer * get_comp(lua_State *L) {
lua_pushinteger(L, 1);
Expand Down

0 comments on commit fba0bcf

Please sign in to comment.