Merge pull request #150 from alwayshopeless/patch-2

Water mill river water bug fix
This commit is contained in:
Joachim Stolberg 2023-11-05 00:43:07 +01:00 committed by GitHub
commit 4e77cfab70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ local function water_flowing(pos, facedir, tRes)
local pos2 = vector.add(pos, dir)
pos2.y = pos2.y + 1
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
return true
end
@ -57,7 +57,7 @@ local function water_flowing(pos, facedir, tRes)
pos2 = vector.subtract(pos, dir)
pos2.y = pos2.y + 1
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
return true
end