diff --git a/nodes.lua b/nodes.lua index e84826e..a6bc0e2 100644 --- a/nodes.lua +++ b/nodes.lua @@ -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 }) diff --git a/snow.lua b/snow.lua index b550fd4..687c19c 100644 --- a/snow.lua +++ b/snow.lua @@ -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