summaryrefslogtreecommitdiff
path: root/wrench
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2013-12-19 22:57:25 -0500
committerShadowNinja <shadowninja@minetest.net>2013-12-19 22:57:25 -0500
commit82f4862e73b76b5f5f13215e1bae61c83038efce (patch)
treef31d89c19319ca4714f28227e355cf9de7cb9432 /wrench
parentf3bba0aaacd3fe1791405b27f6a93deb630178f7 (diff)
Rename wrench variable
Diffstat (limited to 'wrench')
-rw-r--r--wrench/init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/wrench/init.lua b/wrench/init.lua
index 2c64d78..214544c 100644
--- a/wrench/init.lua
+++ b/wrench/init.lua
@@ -384,17 +384,17 @@ minetest.register_tool("wrench:wrench", {
end
metadata_str.metas = meta_str
- inv = placer:get_inventory()
+ local player_inv = placer:get_inventory()
local stack = {name = name}
- if inv:room_for_item("main", stack) then
+ if player_inv:room_for_item("main", stack) then
minetest.remove_node(pos)
itemstack:add_wear(65535/20)
if empty and #lists > 0 and support.store_meta_always == nil then
- inv:add_item("main", stack)
+ player_inv:add_item("main", stack)
else
stack.name = supported_nodes[name].name
stack.metadata = minetest.serialize(metadata_str)
- inv:add_item("main", stack)
+ player_inv:add_item("main", stack)
end
end
return itemstack