From f119717d9d06ef9040c1bf31be9d6198d23fe0db Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Mon, 19 Aug 2019 15:07:50 -0400 Subject: [PATCH] add cottages_missing mod --- .../mods-stopgap/cottages_missing/LICENSE.txt | 21 +++++++++++++++++++ .../mods-stopgap/cottages_missing/README.md | 11 ++++++++++ .../mods-stopgap/cottages_missing/depends.txt | 2 ++ .../cottages_missing/description.txt | 1 + .../mods-stopgap/cottages_missing/init.lua | 12 +++++++++++ .../mods-stopgap/cottages_missing/mod.conf | 1 + 6 files changed, 48 insertions(+) create mode 100644 patches/mods-stopgap/cottages_missing/LICENSE.txt create mode 100644 patches/mods-stopgap/cottages_missing/README.md create mode 100644 patches/mods-stopgap/cottages_missing/depends.txt create mode 100644 patches/mods-stopgap/cottages_missing/description.txt create mode 100644 patches/mods-stopgap/cottages_missing/init.lua create mode 100644 patches/mods-stopgap/cottages_missing/mod.conf diff --git a/patches/mods-stopgap/cottages_missing/LICENSE.txt b/patches/mods-stopgap/cottages_missing/LICENSE.txt new file mode 100644 index 0000000..797cc4e --- /dev/null +++ b/patches/mods-stopgap/cottages_missing/LICENSE.txt @@ -0,0 +1,21 @@ +# MIT License +Copyright 2019 Poikilos (Jake Gustafson) + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/patches/mods-stopgap/cottages_missing/README.md b/patches/mods-stopgap/cottages_missing/README.md new file mode 100644 index 0000000..bd76fa8 --- /dev/null +++ b/patches/mods-stopgap/cottages_missing/README.md @@ -0,0 +1,11 @@ +Minetest mod: cottages_missing +============================== +See description.txt + +Authors of source code +---------------------- +poikilos (github.com/poikilos) + +Authors of media (textures) +--------------------------- +(no media) diff --git a/patches/mods-stopgap/cottages_missing/depends.txt b/patches/mods-stopgap/cottages_missing/depends.txt new file mode 100644 index 0000000..713cbaf --- /dev/null +++ b/patches/mods-stopgap/cottages_missing/depends.txt @@ -0,0 +1,2 @@ +cottages? +anvil? diff --git a/patches/mods-stopgap/cottages_missing/description.txt b/patches/mods-stopgap/cottages_missing/description.txt new file mode 100644 index 0000000..6fd4670 --- /dev/null +++ b/patches/mods-stopgap/cottages_missing/description.txt @@ -0,0 +1 @@ +Convert "cottages" nodes to equivalent nodes if available. diff --git a/patches/mods-stopgap/cottages_missing/init.lua b/patches/mods-stopgap/cottages_missing/init.lua new file mode 100644 index 0000000..a81eeb7 --- /dev/null +++ b/patches/mods-stopgap/cottages_missing/init.lua @@ -0,0 +1,12 @@ +--if minetest.get_modpath("anvil") ~= nil then +if not minetest.registered_nodes["cottages:hammer"] then + if minetest.registered_nodes["anvil:hammer"] then + minetest.register_alias("cottages:hammer", "anvil:hammer") + end +end + +if not minetest.registered_nodes["cottages:anvil"] then + if minetest.registered_nodes["anvil:anvil"] then + minetest.register_alias("cottages:anvil", "anvil:anvil") + end +end diff --git a/patches/mods-stopgap/cottages_missing/mod.conf b/patches/mods-stopgap/cottages_missing/mod.conf new file mode 100644 index 0000000..91ec626 --- /dev/null +++ b/patches/mods-stopgap/cottages_missing/mod.conf @@ -0,0 +1 @@ +name = cottages_missing