From f957841e0af03a9cc191a22bdeda53588117c263 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 14 Jul 2018 10:47:27 +0200 Subject: [PATCH] Correct vessels dependency, error for < 5.0.0-dev --- README.md | 4 ++++ init.lua | 4 ++++ mod.conf | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ce8b0e8..3b41d5a 100644 --- a/README.md +++ b/README.md @@ -8,5 +8,9 @@ This server mod provides upgradeable packs in form of items to players which giv License: MIT +Dependencies: default, vessels + +Optional dependencies: unified_inventory, sfinv + ## Craft recipes 1. Download and install a craft guide diff --git a/init.lua b/init.lua index 62091dd..45f2811 100644 --- a/init.lua +++ b/init.lua @@ -1,3 +1,7 @@ +if not minetest.register_allow_player_inventory_action then + error("[upgrade_packs] This mod requires at least Minetest 5.0.0-dev") +end + upgrade_packs = {} upgrade_packs.health_items = {} upgrade_packs.breath_items = {} diff --git a/mod.conf b/mod.conf index 3a607dc..354e0c6 100644 --- a/mod.conf +++ b/mod.conf @@ -1,4 +1,4 @@ name = upgrade_packs description = Provides craftable packs to players to increase their health and breath -depends = default -optional_depends = unified_inventory, sfinv, vessels \ No newline at end of file +depends = default, vessels +optional_depends = unified_inventory, sfinv \ No newline at end of file