From 80f91f23be41fa41ff9b250821d1f0bb4d6a2b6f Mon Sep 17 00:00:00 2001
From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54>
Date: Thu, 27 Dec 2012 09:18:53 +0000
Subject: [PATCH] If the auto hotkey for items option is disbled, it wont do ti
 for the rod of recall either

git-svn-id: http://svn.net-core.org/repos/t-engine4@6241 51575b47-30f0-44d4-a5cc-537603b46e54
---
 game/modules/tome/class/Player.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/game/modules/tome/class/Player.lua b/game/modules/tome/class/Player.lua
index 72b4377afa..5dd2de0c20 100644
--- a/game/modules/tome/class/Player.lua
+++ b/game/modules/tome/class/Player.lua
@@ -1293,7 +1293,7 @@ end
 --- Call when an object is added
 function _M:onAddObject(o)
 	mod.class.Actor.onAddObject(self, o)
-	if self.hotkey and o:attr("auto_hotkey") then
+	if self.hotkey and o:attr("auto_hotkey") and config.settings.tome.auto_hotkey_object then
 		local position
 		local name = o:getName{no_count=true, force_id=true, no_add_name=true}
 
-- 
GitLab