From b30324fabe38bab5fde21c96e726bfc885701783 Mon Sep 17 00:00:00 2001 From: Zorman2000 Date: Tue, 4 Apr 2017 14:32:28 -0400 Subject: [PATCH] Pathfinding: Remove Jumper submodule. Tidy-up init.lua Update Readme. --- .gitmodules | 3 --- Jumper | 1 - README.md | 2 +- init.lua | 24 ------------------------ 4 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 .gitmodules delete mode 160000 Jumper diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 0cd99cd..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "Jumper"] - path = Jumper - url = https://github.com/Yonaba/Jumper.git diff --git a/Jumper b/Jumper deleted file mode 160000 index df4eb22..0000000 --- a/Jumper +++ /dev/null @@ -1 +0,0 @@ -Subproject commit df4eb22f2b5a95c003bad9544ed560b2e51654f5 diff --git a/README.md b/README.md index 7665420..004860f 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ License __advanced_npc__ is Copyright (C) 2016-2017 Hector Franqui (zorman2000), licensed under the GPLv3 license. See `license.txt` for details. -The Jumper library is Copyright (c) 2012-2013 Roland Yonaba, licensed under MIT license. See `Jumper/LICENSE.txt` for details. +The `jumper.lua` file contains code based on the [Jumper library](https://github.com/Yonaba/Jumper), which is Copyright (c) 2012-2013 Roland Yonaba, licensed under MIT license. See `actions/jumper.lua` for details. Roadmap diff --git a/init.lua b/init.lua index 6edd9a9..d50b9de 100755 --- a/init.lua +++ b/init.lua @@ -1,30 +1,6 @@ -- Advanced NPC mod by Zorman2000 local path = minetest.get_modpath("advanced_npc") --- Below code for require is taken and slightly modified --- from irc mod by Diego Martinez (kaeza) --- https://github.com/minetest-mods/irc --- Handle mod security if needed --- local ie = minetest.request_insecure_environment() --- -- local req_ie = minetest.request_insecure_environment() --- -- if req_ie then --- -- ie = req_ie --- -- end --- if not ie then --- error("The Advanced NPC mod requires access to insecure functions in ".. --- "order to work. Please add the Advanced NPC mod to the ".. --- "secure.trusted_mods setting or disable the mod.") --- end - --- -- Modify package path so that it can find the Jumper library files --- ie.package.path = --- path .. "/Jumper/?.lua;".. --- ie.package.path - --- -- Require the main files from Jumper --- Grid = ie.require("jumper.grid") --- Pathfinder = ie.require("jumper.pathfinder") - -- Intllib local S if minetest.get_modpath("intllib") then