鏡像自
https://github.com/luanti-org/luanti.git
已同步 2025-10-28 06:05:18 +01:00
@@ -31,8 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
int LuaVoxelManip::gc_object(lua_State *L)
|
int LuaVoxelManip::gc_object(lua_State *L)
|
||||||
{
|
{
|
||||||
LuaVoxelManip *o = *(LuaVoxelManip **)(lua_touserdata(L, 1));
|
LuaVoxelManip *o = *(LuaVoxelManip **)(lua_touserdata(L, 1));
|
||||||
if (!o->is_mapgen_vm)
|
delete o;
|
||||||
delete o;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -319,7 +318,8 @@ LuaVoxelManip::LuaVoxelManip(Map *map)
|
|||||||
|
|
||||||
LuaVoxelManip::~LuaVoxelManip()
|
LuaVoxelManip::~LuaVoxelManip()
|
||||||
{
|
{
|
||||||
delete vm;
|
if (!is_mapgen_vm)
|
||||||
|
delete vm;
|
||||||
}
|
}
|
||||||
|
|
||||||
// LuaVoxelManip()
|
// LuaVoxelManip()
|
||||||
|
|||||||
新增問題並參考
封鎖使用者