From 0c9f6a7119bdbd49a95979d541cfbc33644d099c Mon Sep 17 00:00:00 2001 From: trans_soup <> Date: Tue, 17 Oct 2023 18:54:23 +0200 Subject: [PATCH] move falling node code to own mod. create `bg_api_fall` mod, and move files `falling_node.lua` and `loose_node.lua` to there from `bg_api`. update dependencies in other mods to account for this change. --- mods/bg_api/init.lua | 2 -- mods/{bg_api => bg_api_fall}/falling_node.lua | 0 mods/bg_api_fall/init.lua | 2 ++ mods/{bg_api => bg_api_fall}/loose_node.lua | 0 mods/bg_api_fall/mod.conf | 3 +++ mods/bg_terrain/mod.conf | 2 +- 6 files changed, 6 insertions(+), 3 deletions(-) rename mods/{bg_api => bg_api_fall}/falling_node.lua (100%) create mode 100644 mods/bg_api_fall/init.lua rename mods/{bg_api => bg_api_fall}/loose_node.lua (100%) create mode 100644 mods/bg_api_fall/mod.conf diff --git a/mods/bg_api/init.lua b/mods/bg_api/init.lua index 2e1e41e..4e906fb 100644 --- a/mods/bg_api/init.lua +++ b/mods/bg_api/init.lua @@ -18,8 +18,6 @@ load_file("util_item") load_file("wrappers") load_file("random_tick") -load_file("falling_node") -load_file("loose_node") load_file("increasing_abm") load_file("cleanup") diff --git a/mods/bg_api/falling_node.lua b/mods/bg_api_fall/falling_node.lua similarity index 100% rename from mods/bg_api/falling_node.lua rename to mods/bg_api_fall/falling_node.lua diff --git a/mods/bg_api_fall/init.lua b/mods/bg_api_fall/init.lua new file mode 100644 index 0000000..375139e --- /dev/null +++ b/mods/bg_api_fall/init.lua @@ -0,0 +1,2 @@ +load_file("falling_node") +load_file("loose_node") diff --git a/mods/bg_api/loose_node.lua b/mods/bg_api_fall/loose_node.lua similarity index 100% rename from mods/bg_api/loose_node.lua rename to mods/bg_api_fall/loose_node.lua diff --git a/mods/bg_api_fall/mod.conf b/mods/bg_api_fall/mod.conf new file mode 100644 index 0000000..5bb3e54 --- /dev/null +++ b/mods/bg_api_fall/mod.conf @@ -0,0 +1,3 @@ +name = bg_api_fall +description = blockgame api for handling falling nodes. +depends = bg_api diff --git a/mods/bg_terrain/mod.conf b/mods/bg_terrain/mod.conf index 528f13d..1b664d7 100644 --- a/mods/bg_terrain/mod.conf +++ b/mods/bg_terrain/mod.conf @@ -1,3 +1,3 @@ name = bg_terrain description = adds terrain stuff to blockgame. -depends = bg_api +depends = bg_api, bg_api_fall