Skip to content

Commit

Permalink
Fix landmines staying active after being dug (#1362)
Browse files Browse the repository at this point in the history
* added remove landmine line

* comma
  • Loading branch information
AnonomousAccount authored Dec 3, 2024
1 parent 5584794 commit 1571fb9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mods/ctf/ctf_landmine/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ core.register_node("ctf_landmine:landmine", {
if not is_self_landmine(puncher, pos) then
landmine_explode(pos)
end
end
end,
on_dig = function(pos, node, digger)
remove_landmine(pos)
minetest.node_dig(pos, node, digger)
end
})

core.register_globalstep(function(dtime)
Expand Down

0 comments on commit 1571fb9

Please sign in to comment.