Skip to content

Commit 76fd68e

Browse files
Shadowbee27shadowbee
authored andcommitted
3.23.1-1.20.1 Merge (#51)
Reviewed-on: https://codeberg.org/Mod-Sauce/IamMusicPlayerRenewed/pulls/51 Co-authored-by: Shadowbee27 <[email protected]> Co-committed-by: Shadowbee27 <[email protected]>
1 parent 6c57bda commit 76fd68e

File tree

105 files changed

+901
-2124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+901
-2124
lines changed

.forgejo/workflows/gradle.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Mod Build
2+
on:
3+
- pull_request
4+
- push
5+
- workflow_dispatch
6+
7+
jobs:
8+
build:
9+
runs-on: debian
10+
steps:
11+
- name: Checkout Repository
12+
uses: actions/checkout@main
13+
with:
14+
fetch-depth: 20
15+
- name: Setup Java 17 & Java 21
16+
run: |
17+
sudo apt update
18+
sudo apt install openjdk-21-jdk
19+
sudo apt install openjdk-17-jdk
20+
- name: Build
21+
run: ./gradlew clean build

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ body:
1212
label: Already reported ? *
1313
description: Before opening a new bug report, please take a moment to search through the current open and closed issues to check if it already exists.
1414
options:
15-
- label: I have searched the existing open and closed issues.
16-
required: true
15+
- label: I have searched the existing open and closed issues.
16+
required: true
1717

1818
- type: dropdown
1919
id: type
@@ -36,6 +36,7 @@ body:
3636
- "3.22.0-alpha.7"
3737
- "3.22.0-alpha.6"
3838
- "3.22.0-alpha.5"
39+
- "3.23"
3940
- "Other"
4041
validations:
4142
required: true

.github/workflows/gradle.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up JDK 17
1717
uses: useblacksmith/setup-java@v5
1818
with:
19-
java-version: 17
19+
java-version: 21
2020
distribution: zulu
2121
cache: gradle
2222

@@ -49,26 +49,3 @@ jobs:
4949
name: IamMusicPlayerRenewedFabric
5050
path: fabric/build/libs
5151
compression-level: 9
52-
53-
- name: Install GitHub CLI
54-
if: failure()
55-
run: sudo apt update && sudo apt install -y gh
56-
57-
- name: Dump logs and notify Discord
58-
if: failure()
59-
env:
60-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61-
DISCORD_WEBHOOK_URL: ${{ secrets.IAMLOGGER }}
62-
run: |
63-
mkdir logs
64-
gh run download $GITHUB_RUN_ID -D logs
65-
66-
# Extract the last 100 lines from all logs (or change as needed)
67-
output=$(find logs -type f -name '*.txt' -exec tail -n 100 {} \; | sed 's/"/\\"/g' | head -c 1800)
68-
69-
payload="{\"content\": \"❌ **Build failed!**\n\`\`\`\n$output\n\`\`\`\"}"
70-
71-
curl -H "Content-Type: application/json" \
72-
-X POST \
73-
-d "$payload" \
74-
"$DISCORD_WEBHOOK_URL"

build.gradle

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
22
id "architectury-plugin" version "3.4-SNAPSHOT"
3-
id "dev.architectury.loom" version "1.10-SNAPSHOT" apply false
4-
id 'org.jetbrains.changelog' version "2.0.0"
3+
id "dev.architectury.loom" version "1.11-SNAPSHOT" apply false
4+
id "org.jetbrains.changelog" version "2.0.0"
55
}
66

77
architectury {
@@ -11,8 +11,8 @@ architectury {
1111
changelog {
1212
repositoryUrl = rootProject.repository_url
1313
introduction = """
14-
Changelog to track updates for this mod.
15-
Add your changes to Unreleased if you want to commit.
14+
Changelog to track updates for this mod.
15+
Add your changes to Unreleased if you want to commit.
1616
Please write according to [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1717
"""
1818
combinePreReleases = false
@@ -26,11 +26,15 @@ subprojects {
2626
}
2727

2828
dependencies {
29-
minecraft "com.mojang:minecraft:${rootProject.minecraft_version}"
30-
mappings loom.officialMojangMappings()
31-
}
29+
minecraft "net.minecraft:minecraft:$rootProject.minecraft_version"
30+
mappings loom.layered() {
31+
officialMojangMappings()
32+
parchment("org.parchmentmc.data:parchment-${rootProject.minecraft_version}:2023.09.03@zip")
33+
}
34+
}
3235
}
3336

37+
3438
allprojects {
3539
apply plugin: "java"
3640
apply plugin: "architectury-plugin"
@@ -48,20 +52,23 @@ allprojects {
4852
password = repsyPassword
4953
}
5054
}
55+
maven {
56+
url = "https://maven.parchmentmc.org"
57+
}
5158
maven {
5259
url = "https://maven.felnull.dev"
5360
}
5461
maven {
55-
url = 'https://m2.dv8tion.net/releases'
62+
url = "https://m2.dv8tion.net/releases"
5663
}
5764
maven {
58-
url = 'https://jitpack.io'
65+
url = "https://jitpack.io"
5966
}
6067
maven {
61-
url = 'https://maven.blamejared.com'
68+
url = "https://maven.blamejared.com"
6269
}
6370
maven {
64-
url = "https://cursemaven.com"
71+
url = "https://api.modrinth.com/maven"
6572
}
6673
maven {
6774
url = "https://maven.lavalink.dev/releases"
@@ -76,4 +83,4 @@ allprojects {
7683
java {
7784
withSourcesJar()
7885
}
79-
}
86+
}

common/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
implementation("dev.arbjerg:lavaplayer:${rootProject.lava_version_youtube}") {
2323
exclude group: 'dev.arbjerg', module: 'lavaplayer-natives'
2424
}
25-
implementation("dev.lavalink.youtube:v2:${rootProject.lavalink}")
25+
implementation("dev.lavalink.youtube:v2:${rootProject.yt_src}")
2626

2727
implementation "com.github.sealedtx:java-youtube-downloader:${rootProject.ytdownloader}"
2828
implementation 'com.mpatric:mp3agic:0.9.1'

common/src/main/java/dev/felnull/imp/IMPConfig.java

Lines changed: 32 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,55 +8,50 @@
88
@Config.Gui.Background("textures/block/note_block.png")
99
public class IMPConfig implements ConfigData {
1010

11-
@ConfigEntry.Category("client")
12-
public double volume = 1f;
11+
@ConfigEntry.Category("client")
12+
public double volume = 1f;
1313

14-
@ConfigEntry.Category("client")
15-
public int maxPlayCont = 8;
14+
@ConfigEntry.Category("client")
15+
public int maxPlayCont = 8;
1616

17-
@ConfigEntry.Category("client")
18-
public boolean spatial = true;
17+
@ConfigEntry.Category("client")
18+
public boolean spatial = true;
1919

20-
@ConfigEntry.Category("client")
21-
public int sampleRate = 44100;
20+
@ConfigEntry.Category("client")
21+
public int sampleRate = 44100;
2222

23-
@ConfigEntry.Category("client")
24-
public boolean useYoutubeDownloader = true;
23+
@ConfigEntry.Category("client")
24+
public boolean useYoutubeDownloader = true;
2525

26-
@ConfigEntry.Category("client")
27-
public String relayServerURL = "https://raw.githubusercontent.com/TeamFelnull/IamMusicPlayer/master/relay_server.json";
26+
@ConfigEntry.Category("client")
27+
public String relayServerURL =
28+
"https://raw.githubusercontent.com/TeamFelnull/IamMusicPlayer/master/relay_server.json";
2829

29-
@ConfigEntry.Category("client")
30-
public String lavaPlayerNativesURL = "https://raw.githubusercontent.com/Mod-Sauce/test_lavaplayer_IMP/refs/heads/main/lavaplayer/natives_link.json";
31-
/*
32-
@ConfigEntry.Category("client")
33-
public String neteaseCloudMusicApiURL = "https://raw.githubusercontent.com/TeamFelnull/IamMusicPlayer/master/api_server.json";
34-
*/
35-
@ConfigEntry.Category("client")
36-
public boolean hideDisplaySprite = false;
30+
@ConfigEntry.Category("client")
31+
public String lavaPlayerNativesURL =
32+
"https://raw.githubusercontent.com/Mod-Sauce/test_lavaplayer_IMP/refs/heads/main/lavaplayer/natives_link.json";
3733

38-
@ConfigEntry.Category("client")
39-
public boolean hideDecorativeAntenna = false;
34+
@ConfigEntry.Category("client")
35+
public boolean hideDisplaySprite = false;
4036

41-
@ConfigEntry.Category("server")
42-
public long maxWaitTime = 1000 * 10;
37+
@ConfigEntry.Category("client")
38+
public boolean hideDecorativeAntenna = false;
4339

44-
@ConfigEntry.Category("server")
45-
public long retryTime = 1000 * 3;
40+
@ConfigEntry.Category("server")
41+
public long maxWaitTime = 1000 * 10;
4642

47-
@ConfigEntry.Category("server")
48-
public boolean dropItemRing = true;
43+
@ConfigEntry.Category("server")
44+
public long retryTime = 1000 * 3;
4945

50-
@ConfigEntry.Gui.RequiresRestart
51-
@ConfigEntry.Category("integration")
52-
public boolean patchouliIntegration = true;
46+
@ConfigEntry.Category("server")
47+
public boolean dropItemRing = true;
5348

54-
@ConfigEntry.Category("integration")
55-
public boolean soundPhysicsRemasteredIntegration = true;
49+
@ConfigEntry.Category("integration")
50+
public boolean soundPhysicsRemasteredIntegration = true;
5651

57-
@ConfigEntry.Category("debug")
58-
public boolean showMusicLines = false;
52+
@ConfigEntry.Category("debug")
53+
public boolean showMusicLines = false;
5954

60-
@ConfigEntry.Category("debug")
61-
public boolean showSpeakerRange = false;
55+
@ConfigEntry.Category("debug")
56+
public boolean showSpeakerRange = false;
6257
}

0 commit comments

Comments
 (0)