From d4162be9a75816e2edbc8f6ed97588b2cad881d7 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 17 Jun 2017 22:06:37 -0400 Subject: [PATCH] remove wooden chests redefinitions they're incompatible with current minetest_game and do nothing useful anyway --- technic_chests/init.lua | 1 - technic_chests/wooden_chest.lua | 51 --------------------------------- 2 files changed, 52 deletions(-) delete mode 100644 technic_chests/wooden_chest.lua diff --git a/technic_chests/init.lua b/technic_chests/init.lua index af9e041..3565987 100644 --- a/technic_chests/init.lua +++ b/technic_chests/init.lua @@ -9,7 +9,6 @@ technic.chests = {} dofile(modpath.."/common.lua") dofile(modpath.."/register.lua") -dofile(modpath.."/wooden_chest.lua") dofile(modpath.."/iron_chest.lua") dofile(modpath.."/copper_chest.lua") dofile(modpath.."/silver_chest.lua") diff --git a/technic_chests/wooden_chest.lua b/technic_chests/wooden_chest.lua deleted file mode 100644 index 0fad12c..0000000 --- a/technic_chests/wooden_chest.lua +++ /dev/null @@ -1,51 +0,0 @@ -local udef = technic.chests:definition("Wooden", { - width = 8, - height = 4, - sort = false, - autosort = false, - infotext = false, - color = false, - locked = false, -}) -local uudef = { - groups = udef.groups, - tube = udef.tube, - on_construct = udef.on_construct, - can_dig = udef.can_dig, - on_receive_fields = udef.on_receive_fields, - on_metadata_inventory_move = udef.on_metadata_inventory_move, - on_metadata_inventory_put = udef.on_metadata_inventory_put, - on_metadata_inventory_take = udef.on_metadata_inventory_take, -} -if minetest.registered_nodes["default:chest"].description == "Chest" then - uudef.description = udef.description -end -minetest.override_item("default:chest", uudef) - -local ldef = technic.chests:definition("Wooden", { - width = 8, - height = 4, - sort = false, - autosort = false, - infotext = false, - color = false, - locked = true, -}) -local lldef = { - groups = ldef.groups, - tube = ldef.tube, - after_place_node = ldef.after_place_node, - on_construct = ldef.on_construct, - can_dig = ldef.can_dig, - on_receive_fields = ldef.on_receive_fields, - allow_metadata_inventory_move = ldef.allow_metadata_inventory_move, - allow_metadata_inventory_put = ldef.allow_metadata_inventory_put, - allow_metadata_inventory_take = ldef.allow_metadata_inventory_take, - on_metadata_inventory_move = ldef.on_metadata_inventory_move, - on_metadata_inventory_put = ldef.on_metadata_inventory_put, - on_metadata_inventory_take = ldef.on_metadata_inventory_take, -} -if minetest.registered_nodes["default:chest_locked"].description == "Locked Chest" then - lldef.description = ldef.description -end -minetest.override_item("default:chest_locked", lldef)