Water mill river water bug fix

This commit is contained in:
alwayshopeless 2023-11-04 13:44:04 +02:00 committed by GitHub
parent f5becb1eb8
commit a5634c7a75
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) 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