Skip to content

Commit

Permalink
Fix major bug
Browse files Browse the repository at this point in the history
The only nodes detected were `ignore` only, causing the mod to not work properly.
  • Loading branch information
Panquesito7 authored Jul 16, 2023
1 parent 12b736a commit e0e9344
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,9 @@ function double_jump.reset(player)

local node_pos

for _, node in pairs(nodes) do
if node.y > pos.y then
node_pos = node
break
end
for _, node in pairs(nodes) do -- luacheck: ignore
node_pos = node
break
end

local node = minetest.get_node(node_pos or { })
Expand Down

0 comments on commit e0e9344

Please sign in to comment.