From 64bcf0979e681f8c2f521642cf648dbf88f360a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 14 Oct 2019 20:46:44 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/src/core/getfield.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server-beta/src/core/getfield.lua') diff --git a/server-beta/src/core/getfield.lua b/server-beta/src/core/getfield.lua index 328de34a..69c8a675 100644 --- a/server-beta/src/core/getfield.lua +++ b/server-beta/src/core/getfield.lua @@ -11,8 +11,11 @@ function m:field(source, key, callback) local node = source.node used[node] = true - callback(source.field, 'get') local myKey = guide.getKeyName(source) + if key == myKey then + callback(source.field, 'get') + end + self:eachField(node, myKey, function (src, mode) if used[src] then return -- cgit v1.2.3