diff --git a/patches/mods-stopgap/dynamic_liquid_to_default/README.txt b/patches/mods-stopgap/dynamic_liquid_to_default/README.txt new file mode 100644 index 0000000..99f03ad --- /dev/null +++ b/patches/mods-stopgap/dynamic_liquid_to_default/README.txt @@ -0,0 +1,7 @@ +Minetest mod: dynamic_liquid_to_default +========================================== +This Minetest mod was created to repair worlds that have materials from dynamic_liquid but where the dynamic_liquid mod was removed. The dynamic_liquid:* nodes will be converted to the most closely matching default:* nodes. + +Authors of source code +---------------------- +expertmm (github.com/expertmm) diff --git a/patches/mods-stopgap/dynamic_liquid_to_default/depends.txt b/patches/mods-stopgap/dynamic_liquid_to_default/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/patches/mods-stopgap/dynamic_liquid_to_default/depends.txt @@ -0,0 +1 @@ +default diff --git a/patches/mods-stopgap/dynamic_liquid_to_default/init.lua b/patches/mods-stopgap/dynamic_liquid_to_default/init.lua new file mode 100644 index 0000000..c470867 --- /dev/null +++ b/patches/mods-stopgap/dynamic_liquid_to_default/init.lua @@ -0,0 +1,8 @@ +-- Copyright 2017 expertmm (GNU GPL v2.1 license) + +-- minetest.register_alias(name, convert_to) +-- "This means that if the engine finds nodes with the name name in the world the node with the name convert_to is used instead. " +-- +minetest.register_alias("dynamic_liquid:clay", "default:clay") +minetest.register_alias("dynamic_liquid:spring", "default:water_source") +