From 1590ddce2d4b29be4f828651b29ae9263dc2b4d1 Mon Sep 17 00:00:00 2001 From: Maciej Kasatkin Date: Wed, 12 Sep 2012 02:22:18 +0200 Subject: Added Sonic Screwdriver --- screwdriver.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'screwdriver.lua') diff --git a/screwdriver.lua b/screwdriver.lua index aebef80..d58d11a 100644 --- a/screwdriver.lua +++ b/screwdriver.lua @@ -8,8 +8,7 @@ local node=minetest.env:get_node(pos) local node_name=node.name if node.param2==nil then return end - print (node_name) - -- Get ready to set the param2 + -- Get ready to set the param2 local n = node.param2 n = n+1 if n == 4 then n = 0 end @@ -17,8 +16,7 @@ local meta = minetest.env:get_meta(pos) local meta0 = meta:to_table() node.param2 = n - print(node_name) - minetest.env:set_node(pos,node) + minetest.env:set_node(pos,node) meta = minetest.env:get_meta(pos) meta:from_table(meta0) local item=itemstack:to_table() -- cgit v1.2.3