diff options
author | Maciej Kasatkin <mk@realbadangel.pl> | 2012-09-12 02:22:18 +0200 |
---|---|---|
committer | Maciej Kasatkin <mk@realbadangel.pl> | 2012-09-12 02:22:18 +0200 |
commit | 1590ddce2d4b29be4f828651b29ae9263dc2b4d1 (patch) | |
tree | c6467ff8df1e6f0dad2c783f7a34f03e4cd0cbfc /screwdriver.lua | |
parent | d041c13ad822e30f7f9b9ed0624511968ce47e04 (diff) |
Added Sonic Screwdriver
Diffstat (limited to 'screwdriver.lua')
-rw-r--r-- | screwdriver.lua | 6 |
1 files changed, 2 insertions, 4 deletions
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() |