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