Cleanup of last commit, dirtying the graph

This commit is contained in:
Valentin Anger 2018-09-23 04:06:44 +02:00
parent b727fcf102
commit 6bb08c62f6

View File

@ -84,24 +84,8 @@ minetest.register_tool(NAME .. ":handdrill", {
end
})
minetest.register_tool(NAME .. ":emptyhanddrill", {
description = "Empty Electric Handdrill",
inventory_image = "electrichanddrill.png",
groups = {
sparktech_chargable = CAPACITY
},
on_use = function (itemstack, user, pointed_thing)
minetest.debug(itemstack:get_meta():get_int("energy"))
if itemstack:get_meta():get_int("energy") > 0 then
return ItemStack(NAME .. ":handdrill")
end
return nil
end
})
minetest.register_craft({
output = NAME .. ":electricdrill",
output = NAME .. ":handdrill",
recipe = {
{ "", "group:steel_plate", "" },
{ "group:steel_plate", "default:tin_ingot", "group:steel_plate" },