fixed massive amount of water errors (only 3 sussy error messages left) and now water can flow

This commit is contained in:
2023-02-03 07:49:06 +01:00
parent d18d3d3794
commit 2e67b44f7a
4 changed files with 172 additions and 95 deletions

View File

@@ -119,7 +119,7 @@ local entity = {
pos.z = pos.z + dir_sin
local bnode = minetest.get_node(pos)
if bnode.name == "air" or bnode.name == "amogus_blocks:water" then
if bnode.name == "air" or bnode.name == "amogus_blocks:water_source" or bnode.name == "amogus_blocks:water_flowing" then
self.block_lastly_in_front = false
else
if self.block_lastly_in_front == false then

View File

@@ -281,7 +281,7 @@ local entity = {
pos.z = pos.z + dir_sin
local bnode = minetest.get_node(pos)
if bnode.name == "air" or bnode.name == "amogus_blocks:water" then
if bnode.name == "air" or bnode.name == "amogus_blocks:water_source" or bnode.name == "amogus_blocks:water_flowing" then
self.block_lastly_in_front = false
else
if self.block_lastly_in_front == false then