mirror of
https://github.com/BenjieFiftysix/sponge.git
synced 2025-01-06 12:57:28 +01:00
fix nearby sponge location
This commit is contained in:
parent
a3ae65833f
commit
32252bc512
4
init.lua
4
init.lua
@ -47,9 +47,9 @@ local destruct = function(pos) -- removing the air-like nodes
|
|||||||
)
|
)
|
||||||
local sponges = {}
|
local sponges = {}
|
||||||
for _, p in pairs(sponge_info) do
|
for _, p in pairs(sponge_info) do
|
||||||
local node = minetest.get_node(p)
|
local node = minetest.get_node(p[1])
|
||||||
if node.param1 == 1 or node.name == modname..":sponge" then
|
if node.param1 == 1 or node.name == modname..":sponge" then
|
||||||
table.insert(sponges, p)
|
table.insert(sponges, p[1])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user