diff options
author | kpoppel <poulsen.kim@gmail.com> | 2013-05-06 11:55:11 -0700 |
---|---|---|
committer | kpoppel <poulsen.kim@gmail.com> | 2013-05-06 11:55:11 -0700 |
commit | 2239a4447b43fe5beb034ba185288d948daa311b (patch) | |
tree | 65371fdfc089a1ccb957a8d52a7a4ad361db3017 /aaa_recipeshook | |
parent | 895ee322d26727cdf680942d82566b2df83c9368 (diff) | |
parent | 00328622d9cc38a7768a7bf449f5c52ddba666f7 (diff) |
Merge pull request #1 from RealBadAngel/indev
Indev
Diffstat (limited to 'aaa_recipeshook')
-rw-r--r-- | aaa_recipeshook/depends.txt | 1 | ||||
-rw-r--r-- | aaa_recipeshook/init.lua | 29 |
2 files changed, 0 insertions, 30 deletions
diff --git a/aaa_recipeshook/depends.txt b/aaa_recipeshook/depends.txt deleted file mode 100644 index 8b13789..0000000 --- a/aaa_recipeshook/depends.txt +++ /dev/null @@ -1 +0,0 @@ - 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 - - |