1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 23:05:07 -05:00

LuaVoxelManip: Allow liquid updates in non-mapgen VoxelManip objects

This commit is contained in:
kwolekr 2013-07-06 15:12:40 -04:00
parent 55ecde665d
commit 06266abd6e

View File

@ -111,8 +111,6 @@ int LuaVoxelManip::l_write_to_map(lua_State *L)
int LuaVoxelManip::l_update_liquids(lua_State *L) int LuaVoxelManip::l_update_liquids(lua_State *L)
{ {
LuaVoxelManip *o = checkobject(L, 1); LuaVoxelManip *o = checkobject(L, 1);
if (!o->is_mapgen_vm)
return 0;
INodeDefManager *ndef = STACK_TO_SERVER(L)->getNodeDefManager(); INodeDefManager *ndef = STACK_TO_SERVER(L)->getNodeDefManager();
Map *map = &(get_scriptapi(L)->getEnv()->getMap()); Map *map = &(get_scriptapi(L)->getEnv()->getMap());