diff options
author | RealBadAngel <mk@realbadangel.pl> | 2013-04-14 06:12:49 +0200 |
---|---|---|
committer | RealBadAngel <mk@realbadangel.pl> | 2013-04-14 06:12:49 +0200 |
commit | 69ae366f6084bcda08d74abb4d3577a42f27a93b (patch) | |
tree | a3de3ff57f855fae920cb33b68810741949c03a9 /aaa_recipeshook/init.lua | |
parent | 895ee322d26727cdf680942d82566b2df83c9368 (diff) |
changes to CraftingGuide
Diffstat (limited to 'aaa_recipeshook/init.lua')
-rw-r--r-- | aaa_recipeshook/init.lua | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/aaa_recipeshook/init.lua b/aaa_recipeshook/init.lua deleted file mode 100644 index 733edd1..0000000 --- a/aaa_recipeshook/init.lua +++ /dev/null @@ -1,29 +0,0 @@ -crafts_table ={} -crafts_table_count=0 -UI_recipes_hook=true - --- override minetest.register_craft -local minetest_register_craft = minetest.register_craft -minetest.register_craft = function (options) - register_craft(options) - if options.type=="alloy" or options.type=="grinding" then return end - minetest_register_craft(options) -end - --- register_craft -register_craft = function(options) - if options.output == nil then - return - end - local itemstack = ItemStack(options.output) - if itemstack:is_empty() then - return - end - if crafts_table[itemstack:get_name()]==nil then - crafts_table[itemstack:get_name()] = {} - end - table.insert(crafts_table[itemstack:get_name()],options) - crafts_table_count=crafts_table_count+1 -end - - |