Fix incorrect write_map_usage()

closes #11
This commit is contained in:
sfan5 2017-12-10 14:02:32 +01:00
parent 36925bfbae
commit a347081ffd
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ minetest.register_abm({
local data = vm:get_data()
add_savannatree(data, a, pos.x, pos.y, pos.z, minp, maxp, PseudoRandom(math.random(1,100000)))
vm:set_data(data)
vm:write_to_map(data)
vm:write_to_map()
vm:update_map()
end
})
@ -160,7 +160,7 @@ minetest.register_abm({
local data = vm:get_data()
add_pinetree(data, a, pos.x, pos.y, pos.z, minp, maxp, PseudoRandom(math.random(1,100000)), c_air)
vm:set_data(data)
vm:write_to_map(data)
vm:write_to_map()
vm:update_map()
end
})

View File

@ -51,7 +51,7 @@ minetest.register_globalstep(function(dtime)
end
end
--vm:set_data(data)
--vm:write_to_map(data)
--vm:write_to_map()
--for _, pos in ipairs(to_update) do
-- nodeupdate(pos)
--end