From 37e9b4c395807aa008e59e01f662279ab8195875 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期三, 22 五月 2019 10:10:43 +0800
Subject: [PATCH] 3642 【2.0】【bug】灵草园采集错误
---
System/MainInterfacePanel/MainCollectBehaviour.cs | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/System/MainInterfacePanel/MainCollectBehaviour.cs b/System/MainInterfacePanel/MainCollectBehaviour.cs
index 9c3c849..f10cc10 100644
--- a/System/MainInterfacePanel/MainCollectBehaviour.cs
+++ b/System/MainInterfacePanel/MainCollectBehaviour.cs
@@ -82,7 +82,15 @@
{
if (collectNpcId != 0 && serverInstanceId != 0)
{
- PrepareHandler.Instance.HandleCallback(E_NpcType.Collect, collectNpcId, serverInstanceId);
+ 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);
+ }
// NPCInteractProcessor.InvokeEvent(E_NpcType.Collect, collectNpcId, serverInstanceId);
}
}
--
Gitblit v1.8.0