Skip to content

Commit

Permalink
Revert "use minetest.load_area() instead of vmanip for loading areas"
Browse files Browse the repository at this point in the history
This reverts commit b7d2ecd.
  • Loading branch information
S-S-X committed Feb 5, 2022
1 parent b7d2ecd commit 9e0f6ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion engines/default_jump.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jumpdrive.simulate_jump = function(pos, player, show_marker)
end

-- load chunk
minetest.load_area(target_pos1, target_pos2)
minetest.get_voxel_manip():read_from_map(target_pos1, target_pos2)

if show_marker then
jumpdrive.show_marker(targetPos, radius, "red")
Expand Down
3 changes: 2 additions & 1 deletion fleet/fleet_functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ jumpdrive.fleet.find_engines = function(pos, visited_hashes, engine_pos_list)
local pos2 = vector.add(pos,1)

-- load far-away areas
minetest.load_area(pos1, pos2)
local manip = minetest.get_voxel_manip()
manip:read_from_map(pos1, pos2)

local engine_nodes = minetest.find_nodes_in_area(pos1, pos2, {"jumpdrive:engine"})

Expand Down

0 comments on commit 9e0f6ea

Please sign in to comment.