fix:修复小bug
This commit is contained in:
1 parent
79c82025ee
commit
507465de0e
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -3105,7 +3105,7 @@ control.prototype.playSound = function (sound, pitch, inputCallback) {
|
||||
playingSoundList.push(sound);
|
||||
const callback = () => {
|
||||
playingSoundList = playingSoundList.filter((soundName) => soundName !== sound);
|
||||
inputCallback();
|
||||
if (inputCallback) inputCallback();
|
||||
}
|
||||
try {
|
||||
if (core.musicStatus.audioContext != null) {
|
||||
|
||||
+1
-1
@@ -2550,7 +2550,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
|
||||
if (!sortFunc) sortFunc = (itemId1, itemId2) => {
|
||||
const item1Count = itemsUsedCount[itemId1] || 0,
|
||||
item2Count = itemsUsedCount[itemId2] || 0;
|
||||
return item1Count - item2Count;
|
||||
return item2Count - item1Count;
|
||||
}
|
||||
|
||||
let list = [];
|
||||
|
||||
Reference in new issue
Block a user