From 54bb9dcc47dc8b2404dc5acb2f64281a773a7184 Mon Sep 17 00:00:00 2001 From: xiyoo0812 Date: Thu, 30 May 2024 15:55:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=9E=E6=80=A7=E7=B3=BB=E7=BB=9F=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=A4=8D=E5=90=88=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/business/component/attr_component.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/business/component/attr_component.lua b/server/business/component/attr_component.lua index 271d5461..be70ab76 100644 --- a/server/business/component/attr_component.lua +++ b/server/business/component/attr_component.lua @@ -234,7 +234,7 @@ function AttrComponent:notify_attr(attr_id, value, oldval, attr) self.sync_attrs[attr_id] = attr event_mgr:publish_frame(self, "on_attr_update") end - self:notify_event(sformat("on_attr_changed_%s", attr_id), value, oldval, attr_id, self) + self:notify_event(sformat("on_attr_changed_%s", attr_id), attr_id, value, oldval, self) end --获取属性