summaryrefslogtreecommitdiff
path: root/aaa_recipeshook
diff options
context:
space:
mode:
authorRealBadAngel <mk@realbadangel.pl>2013-06-30 07:12:02 +0200
committerRealBadAngel <mk@realbadangel.pl>2013-06-30 07:12:02 +0200
commit8e03d7ded6441b26e9d44102c0cd2ee39f9e90bc (patch)
tree75cf6c14f37377fbfe12bec5ac0a4f48ffa488d9 /aaa_recipeshook
parentc687e8cb7b9e624474353b0cc10acc5db14192f8 (diff)
Sync with indev branch, bump version to 0.4.7
Diffstat (limited to 'aaa_recipeshook')
-rw-r--r--aaa_recipeshook/depends.txt1
-rw-r--r--aaa_recipeshook/init.lua29
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
-
-