From 47a4d355254b69d64f5b9982b0c75b23c076009c Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 22 五月 2019 11:59:44 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/MainInterfacePanel/MainCollectBehaviour.cs |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/System/MainInterfacePanel/MainCollectBehaviour.cs b/System/MainInterfacePanel/MainCollectBehaviour.cs
index f10cc10..5bbc4d6 100644
--- a/System/MainInterfacePanel/MainCollectBehaviour.cs
+++ b/System/MainInterfacePanel/MainCollectBehaviour.cs
@@ -82,15 +82,8 @@
         {
             if (collectNpcId != 0 && serverInstanceId != 0)
             {
-                var _npc = GAMgr.Instance.GetBySID(serverInstanceId);
-                if (_npc is GA_NpcCollect)
-                {
-                    PrepareHandler.Instance.HandleCallback(E_NpcType.Collect, collectNpcId, serverInstanceId);
-                }
-                else if (_npc is GA_NpcClientCollect)
-                {
-                    ClientCollectUtility.HandleCallback(E_NpcType.Collect, collectNpcId, serverInstanceId);
-                }
+                PrepareHandler.Instance.HandleCallback(E_NpcType.Collect, collectNpcId, serverInstanceId);
+                ClientCollectUtility.HandleCallback(E_NpcType.Collect, collectNpcId, serverInstanceId);
                 // NPCInteractProcessor.InvokeEvent(E_NpcType.Collect, collectNpcId, serverInstanceId);
             }
         }

--
Gitblit v1.8.0