Merge pull request #150 from alwayshopeless/patch-2
Water mill river water bug fix
This commit is contained in:
commit
4e77cfab70
@ -49,7 +49,7 @@ local function water_flowing(pos, facedir, tRes)
|
|||||||
local pos2 = vector.add(pos, dir)
|
local pos2 = vector.add(pos, dir)
|
||||||
pos2.y = pos2.y + 1
|
pos2.y = pos2.y + 1
|
||||||
local node = minetest.get_node(pos2)
|
local node = minetest.get_node(pos2)
|
||||||
if node.name == "default:water_flowing" then
|
if node.name == "default:water_flowing" or node.name == "default:river_water_flowing" then
|
||||||
tRes.backward = false
|
tRes.backward = false
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
@ -57,7 +57,7 @@ local function water_flowing(pos, facedir, tRes)
|
|||||||
pos2 = vector.subtract(pos, dir)
|
pos2 = vector.subtract(pos, dir)
|
||||||
pos2.y = pos2.y + 1
|
pos2.y = pos2.y + 1
|
||||||
node = minetest.get_node(pos2)
|
node = minetest.get_node(pos2)
|
||||||
if node.name == "default:water_flowing" then
|
if node.name == "default:water_flowing" or node.name == "default:river_water_flowing" then
|
||||||
tRes.backward = true
|
tRes.backward = true
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user