diff options
author | Boba <Boba@boba-xp01> | 2014-04-14 20:05:08 +0200 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-04-14 20:52:57 -0400 |
commit | 061d1a3ab4e7c44568d3476e2f1ac716afb3827e (patch) | |
tree | 9905f6e76d49bf338009c070b20d44fc15bad4b4 | |
parent | 7dc21cec406598b974063bc0779a611edaea90be (diff) |
Fix crash when using the template tool
-rw-r--r-- | technic/machines/other/frames.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/technic/machines/other/frames.lua b/technic/machines/other/frames.lua index fed9d85..b8b4305 100644 --- a/technic/machines/other/frames.lua +++ b/technic/machines/other/frames.lua @@ -802,7 +802,7 @@ minetest.register_tool("technic:template_tool",{ inventory_image = "technic_template_tool.png", on_use = function(itemstack, puncher, pointed_thing) local pos = pointed_thing.under - if pos == nil or (minetest.is_protected and minetest.is_protected(pos, placer:get_player_name())) then + if pos == nil or (minetest.is_protected and minetest.is_protected(pos, puncher:get_player_name())) then return nil end local node = minetest.get_node(pos) |