소스 검색

修改物品折叠

huangyuhao 1 년 전
부모
커밋
7c38a0efa4
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  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 315
         return
316 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 323
 end
320 324
 
321 325
 -- 推送资源变化