Skip to content

Commit

Permalink
更新资源包
Browse files Browse the repository at this point in the history
- 将默认声音包放在首位
  • Loading branch information
TartaricAcid committed Oct 21, 2023
1 parent ef62d36 commit e7f3fde
Show file tree
Hide file tree
Showing 74 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import net.minecraftforge.registries.ForgeRegistries;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -159,7 +160,10 @@ private void addSoundElementPageButtons() {

private void addSoundPackButtons() {
int yOffset = 19;
List<String> soundPackIds = List.copyOf(CustomSoundLoader.CACHE.keySet());
List<String> soundPackIds = new ArrayList<>(CustomSoundLoader.CACHE.keySet());
if (soundPackIds.contains(TouhouLittleMaid.MOD_ID)) {
Collections.swap(soundPackIds, soundPackIds.indexOf(TouhouLittleMaid.MOD_ID), 0);
}
int startPackIndex = packPage * packPerSize;
if (startPackIndex >= soundPackIds.size()) {
this.packPage = 0;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit e7f3fde

Please sign in to comment.