mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 17:50:37 +01:00
[sponge] Fix positions
This commit is contained in:
parent
ace7a37889
commit
1e367dcbb7
@ -19,7 +19,6 @@ minetest.register_node("sponge:sponge", {
|
||||
end
|
||||
local change = false
|
||||
local on_water = false
|
||||
local pos = pointed_thing.above
|
||||
-- verifier si il est dans l'eau ou a cotée
|
||||
if string.find(minetest.get_node(pointed_thing.above).name, "water_source")
|
||||
or string.find(minetest.get_node(pointed_thing.above).name, "water_flowing") then
|
||||
@ -66,10 +65,8 @@ minetest.register_node("sponge:sponge", {
|
||||
end
|
||||
end
|
||||
if change then
|
||||
minetest.add_node(pointed_thing.above, {name = "sponge:sponge_wet"})
|
||||
minetest.add_node(pos, {name = "sponge:sponge_wet"})
|
||||
end
|
||||
p = {x=pos.x, y=pos.y, z=pos.z}
|
||||
n = minetest.get_node(p)
|
||||
end
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user