Skip to content

Commit

Permalink
优化属性打包
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyoo0812 committed Apr 30, 2024
1 parent 6900b83 commit 13cd0aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/business/component/attr_component.lua
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ end
function AttrComponent:package_attrs(range)
local attrs = {}
for attr_id, attr in pairs(self.attr_set) do
if attr.range > 0 and range >= attr.range then
if attr.range > 0 and attr.range > range then
tinsert(attrs, self:encode_attr(attr_id, attr))
end
end
Expand Down

0 comments on commit 13cd0aa

Please sign in to comment.