From 8bd24ca54dff01501faa32b1b1d0c4319b5cbd79 Mon Sep 17 00:00:00 2001 From: TheOnlyJoeEnderman Date: Mon, 28 Nov 2022 05:11:36 +0000 Subject: [PATCH] fix optional dependencies, condense licenses to one file --- LICENSE.txt | 30 ++++++++++++++++++++++++++++++ mod.conf | 2 +- stairs.lua | 2 ++ wall.lua | 2 ++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 LICENSE.txt diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..90d07f8 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,30 @@ +License of source code +---------------------- + +GNU Lesser General Public License, version 2.1 +Copyright (C) 2011-2018 celeron55, Perttu Ahola +Copyright (C) 2011-2018 Various Minetest developers and contributors + +This program is free software; you can redistribute it and/or modify it under the terms +of the GNU Lesser General Public License as published by the Free Software Foundation; +either version 2.1 of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +See the GNU Lesser General Public License for more details: +https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html + + + +License of textures +------------------- + +MIT License + +Copyright (c) 2022 JoeEnderman + +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/mod.conf b/mod.conf index 22e9f3f..fa08755 100644 --- a/mod.conf +++ b/mod.conf @@ -1,6 +1,6 @@ name = too_many_stones description = Adds several new stone types to Minetest Game or any game that supplies default. V6 terrain is unsupported. depends = default -optional_depends = stairs, walls, geodes +optional_depends = stairs, walls, geodes, moreores min_minetest_version = 5.5.1 title = Too Many Stones diff --git a/stairs.lua b/stairs.lua index 42ed948..90e7898 100644 --- a/stairs.lua +++ b/stairs.lua @@ -1,3 +1,4 @@ +if minetest.get_modpath("stairs") ~= nil then -- Greenstone stairs.register_stair_and_slab( "greenstone", @@ -405,3 +406,4 @@ stairs.register_stair_and_slab( default.node_sound_stone_defaults(), false ) +end diff --git a/wall.lua b/wall.lua index 5f3edcd..14553c4 100644 --- a/wall.lua +++ b/wall.lua @@ -1,3 +1,4 @@ +if minetest.get_modpath("walls") ~= nil then -- Greenstone walls.register("too_many_stones:greenstone_wall", "Greentone Wall", "tms_greenstone.png", "too_many_stones:greenstone", default.node_sound_stone_defaults()) @@ -109,3 +110,4 @@ walls.register("too_many_stones:granite_red_wall", "Red Granite Wall", "tms_gran walls.register("too_many_stones:granite_red_brick_wall", "Red Granite Brick Wall", "tms_granite_red_brick.png", "too_many_stones:granite_red_brick", default.node_sound_stone_defaults()) +end