Activate traps when dug.
This commit is contained in:
parent
278bfadb17
commit
4ad818a922
2 changed files with 139 additions and 111 deletions
|
@ -231,6 +231,9 @@ for _, node in pairs(mass_nodes) do
|
|||
local maxp = vector.add(pos, maxr)
|
||||
if pos.y >= player_pos.y then
|
||||
minp.y = player_pos.y
|
||||
if pos.y - player_pos.y < 3 then
|
||||
maxp.y = player_pos.y + 3
|
||||
end
|
||||
end
|
||||
|
||||
local air = minetest.get_content_id('air')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue