From 09fd3f2aa189f0a021ec90abd796406e4a4cc3e4 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 3 Nov 2020 14:46:20 +0100 Subject: [PATCH] Make renewable lava optional Lava used to be renewable until 0.4.5. The default was changed in 2013 (a4426e4bd48aeef79a4baf0adf54610b64139551), but making it renewable again is a relatively frequent request, with known workarounds. This change makes the renewability of lava a game configuration option, allowing the server administrator to enable it without having to go outside of the standard game. --- minetest.conf.example | 3 +++ mods/default/nodes.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/minetest.conf.example b/minetest.conf.example index 86eba660..13421c35 100644 --- a/minetest.conf.example +++ b/minetest.conf.example @@ -37,6 +37,9 @@ # Whether lavacooling should be enabled. #enable_lavacooling = true +# Whether lava sources are renewable or not. +#renewable_lava = false + # Whether the stuff in initial_stuff should be given to new players. #give_initial_stuff = false #initial_stuff = default:pick_steel,default:axe_steel,default:shovel_steel, diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 915c3766..98887923 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -2406,7 +2406,7 @@ minetest.register_node("default:lava_source", { liquid_alternative_flowing = "default:lava_flowing", liquid_alternative_source = "default:lava_source", liquid_viscosity = 7, - liquid_renewable = false, + liquid_renewable = minetest.settings:get_bool("renewable_lava") or false, damage_per_second = 4 * 2, post_effect_color = {a = 191, r = 255, g = 64, b = 0}, groups = {lava = 3, liquid = 2, igniter = 1},