mirror of
https://github.com/BenjieFiftysix/sponge.git
synced 2025-01-04 12:07:38 +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 = {}
|
||||
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
|
||||
table.insert(sponges, p)
|
||||
table.insert(sponges, p[1])
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user