From 68a6676d2ef96641dd92bff194e545a4855d6445 Mon Sep 17 00:00:00 2001 From: DonBatman Date: Sun, 17 May 2015 06:17:10 -0700 Subject: [PATCH] removed unused code updated readme --- README.md | 8 +------- cornertool.lua | 8 -------- init.lua | 2 +- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 54da293..e3dc1f3 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,7 @@ Code for machine based off of Noncubic by yves_de_beck mycorners adds corners to many default blocks. To use simply craft a corner machine. Then put in wood, stone or stone brick. Click Make. This gives you your corner items. - -You can either install the corners in the machine or craft a corner tool and install the corners to blocks already placed. - -Corner Tool -place the corners beside the corner tool -left click installs the corners -right click rotates the block +Then craft a corner installer machine. Put in the block you want a corner on and the corner items you want installed. Click Make. Craft ------- diff --git a/cornertool.lua b/cornertool.lua index a785f87..2578603 100644 --- a/cornertool.lua +++ b/cornertool.lua @@ -1,13 +1,5 @@ local USES = 200 -local function rotate(x, max) - x = x + 1 - if x > max then - x = 0 - end - return x -end - minetest.register_tool( "mycorners:corner_tool",{ description = "Corner Tool", inventory_image = "mycorners_cornertool.png", diff --git a/init.lua b/init.lua index 8205596..09f0f78 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,5 @@ mycorners = {} ---dofile(minetest.get_modpath("mycorners").."/cornertool.lua") +dofile(minetest.get_modpath("mycorners").."/cornertool.lua") dofile(minetest.get_modpath("mycorners").."/nodes.lua") dofile(minetest.get_modpath("mycorners").."/machine.lua") dofile(minetest.get_modpath("mycorners").."/register.lua")