Skip to content

Commit 3ae382c

Browse files
committedNov 11, 2017
River water renewability: Add comments to nodes.lua and bucket mod
1 parent 91997d9 commit 3ae382c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
 

Diff for: ‎mods/bucket/init.lua

+6
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ bucket.register_liquid(
188188
{water_bucket = 1}
189189
)
190190

191+
-- River water source is 'liquid_renewable = false' to avoid horizontal spread
192+
-- of water sources in sloping rivers that can cause water to overflow
193+
-- riverbanks and cause floods.
194+
-- River water source is instead made renewable by the 'force renew' option
195+
-- used here.
196+
191197
bucket.register_liquid(
192198
"default:river_water_source",
193199
"default:river_water_flowing",

Diff for: ‎mods/default/nodes.lua

+4
Original file line numberDiff line numberDiff line change
@@ -1656,6 +1656,10 @@ minetest.register_node("default:river_water_source", {
16561656
liquid_alternative_flowing = "default:river_water_flowing",
16571657
liquid_alternative_source = "default:river_water_source",
16581658
liquid_viscosity = 1,
1659+
-- Not renewable to avoid horizontal spread of water sources in sloping
1660+
-- rivers that can cause water to overflow riverbanks and cause floods.
1661+
-- River water source is instead made renewable by the 'force renew'
1662+
-- option used in the 'bucket' mod by the river water bucket.
16591663
liquid_renewable = false,
16601664
liquid_range = 2,
16611665
post_effect_color = {a = 103, r = 30, g = 76, b = 90},

0 commit comments

Comments
 (0)