Browse Source

修改物品折叠

huangyuhao 1 year ago
parent
commit
7c38a0efa4
1 changed files with 5 additions and 1 deletions
  1. 5 1
      dev/data/bag.lua

+ 5 - 1
dev/data/bag.lua

@@ -315,7 +315,11 @@ function root:_update_item(uid, itemList, itemId, count, bid)
315
         return
315
         return
316
     end
316
     end
317
 
317
 
318
-    return self:_AddItemByBid(uid, itemList, itemId, count, bid, conf, conf.enableComposite)
318
+    local isPart = true -- 相同物品是否分散
319
+    if conf.enableComposite then
320
+        isPart = false
321
+    end
322
+    return self:_AddItemByBid(uid, itemList, itemId, count, bid, conf, isPart)
319
 end
323
 end
320
 
324
 
321
 -- 推送资源变化
325
 -- 推送资源变化