From 3ae382c91302b87c2deac2d5284a7e04cf1878c9 Mon Sep 17 00:00:00 2001 From: paramat Date: Wed, 8 Nov 2017 12:44:56 +0000 Subject: [PATCH] River water renewability: Add comments to nodes.lua and bucket mod --- mods/bucket/init.lua | 6 ++++++ mods/default/nodes.lua | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/mods/bucket/init.lua b/mods/bucket/init.lua index 5076dece..44565326 100644 --- a/mods/bucket/init.lua +++ b/mods/bucket/init.lua @@ -188,6 +188,12 @@ bucket.register_liquid( {water_bucket = 1} ) +-- River water source is 'liquid_renewable = false' to avoid horizontal spread +-- of water sources in sloping rivers that can cause water to overflow +-- riverbanks and cause floods. +-- River water source is instead made renewable by the 'force renew' option +-- used here. + bucket.register_liquid( "default:river_water_source", "default:river_water_flowing", diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 00bb2985..545d02c0 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -1656,6 +1656,10 @@ minetest.register_node("default:river_water_source", { liquid_alternative_flowing = "default:river_water_flowing", liquid_alternative_source = "default:river_water_source", liquid_viscosity = 1, + -- Not renewable to avoid horizontal spread of water sources in sloping + -- rivers that can cause water to overflow riverbanks and cause floods. + -- River water source is instead made renewable by the 'force renew' + -- option used in the 'bucket' mod by the river water bucket. liquid_renewable = false, liquid_range = 2, post_effect_color = {a = 103, r = 30, g = 76, b = 90}, -- 2.25.1