Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- celeron55-minetest-6957930.orig/src/scriptapi.cpp 2011-12-11 15:52:19.000000000 +0100
- +++ celeron55-minetest-6957930/src/scriptapi.cpp 2012-01-02 02:59:35.000000000 +0100
- @@ -2462,8 +2462,10 @@
- const char *name = lua_tostring(L, 3);
- // Do it
- ServerActiveObject *obj = new LuaEntitySAO(env, pos, name, "");
- - env->addActiveObject(obj);
- - return 0;
- + int objectid = env->addActiveObject(obj);
- +
- + luaentity_get(L, objectid); // added entity
- + return 1;
- }
- // EnvRef:add_item(pos, inventorystring)
Advertisement
Add Comment
Please, Sign In to add comment