fix:修复小bug
This commit is contained in:
parent
79c82025ee
commit
507465de0e
@ -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) {
|
||||
|
||||
@ -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 = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user