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
 -- 推送资源变化