From 6622ea8bab556f60c5591147778a7c2f5a9061ff Mon Sep 17 00:00:00 2001 From: Jordan Irwin Date: Wed, 30 Aug 2017 14:57:18 -0700 Subject: [PATCH] Remove functionality for cleaning anything other than entities: For cleaning other objects it is recommended to use 'override' mod: https://github.com/AntumMT/mod-override --- init.lua | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/init.lua b/init.lua index 38cf5a5..0b29e5b 100644 --- a/init.lua +++ b/init.lua @@ -18,35 +18,9 @@ local function logDebug(msg) end end -local old_nodes = {} + local old_entities = {} --- Old/Missing nodes that should be replaced with something currently in game -local replace_nodes = {} - - --- "Replaces" an old/non-existent node -local function replace_node(old_node, new_node) - core.register_alias(old_node, new_node) -end - - -for _,node_name in ipairs(old_nodes) do - core.register_node(':' .. node_name, { - groups = {old=1}, - }) -end - -core.register_abm({ - nodenames = {'group:old'}, - interval = 1, - chance = 1, - action = function(pos, node) - core.remove_node(pos) - end, -}) - - -- Populate entities list from file in world path local e_list = nil local e_path = core.get_worldpath() .. '/clean_entities.txt' @@ -80,8 +54,3 @@ for _, entity_name in ipairs(old_entities) do end, }) end - --- Replace old nodes -for _, node_group in pairs(replace_nodes) do - replace_node(node_group[1], node_group[2]) -end