Skip to content

Commit

Permalink
Update to 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1989 committed Dec 13, 2021
1 parent c244790 commit 5512459
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: 16
java-version: 17
- name: Build
uses: eskatos/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: 16
java-version: 17
- name: Build
uses: eskatos/[email protected]
with:
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ version = "${mod_version}"
group = maven_group // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "${archives_base_name}"

java.toolchain.languageVersion.set(JavaLanguageVersion.of(16))
java.toolchain.languageVersion.set(JavaLanguageVersion.of(17))
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))

minecraft {
Expand Down Expand Up @@ -95,8 +95,8 @@ repositories {

dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
library 'org.spongepowered:mixin:0.8.4-SNAPSHOT'
annotationProcessor 'org.spongepowered:mixin:0.8.4-SNAPSHOT:processor'
library 'org.spongepowered:mixin:0.8.5-SNAPSHOT'
annotationProcessor 'org.spongepowered:mixin:0.8.5-SNAPSHOT:processor'
}

// Example for how to get properties into the manifest for reading by the runtime..
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx3G
# Forge Properties
minecraft_version=1.17.1
forge_version=37.0.53
parchment_version=2021.09.05
minecraft_version=1.18.1
forge_version=39.0.0
parchment_version=BLEEDING-SNAPSHOT
# Mod Properties
modid=nowplaying
mod_version=1.2.0
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions-snapshots/gradle-7.2-20210702220150+0000-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modLoader="javafml"
loaderVersion="[33,)"
loaderVersion="[39,)"
issueTrackerURL="https://github.com/Scotsguy/now-playing/issues"
license="MIT"

Expand All @@ -16,6 +16,6 @@ description="Shows a 'now playing' popup whenever a song starts to play."
[[dependencies.nowplaying]]
modId="minecraft"
mandatory=true
versionRange="[1.17.1,)"
versionRange="[1.18,)"
ordering="NONE"
side="CLIENT"
21 changes: 21 additions & 0 deletions src/main/resources/assets/nowplaying/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"now_playing.toast.now_playing": "Now Playing:",

"text.autoconfig.now-playing.title": "Now Playing Config",

"text.autoconfig.now-playing.option.musicStyle": "Notification Style (Music)",
"text.autoconfig.now-playing.option.musicStyle.@Tooltip": "How the 'Now Playing' notification should be displayed when music plays normally.",

"text.autoconfig.now-playing.option.jukeboxStyle": "Notification Style (Jukebox)",
"text.autoconfig.now-playing.option.jukeboxStyle.@Tooltip": "How the 'Now Playing' notification should be displayed when music plays from a jukebox.",

"now_playing.config.style.hotbar": "Hotbar",
"now_playing.config.style.toast": "Toast",
"now_playing.config.style.disabled": "Disabled",

"now_playing.sound.minecraft:music/game/calm1": "C418 - Minecraft",
"now_playing.sound.minecraft:music/game/calm2": "C418 - Clark",
"now_playing.sound.minecraft:music/game/calm3": "C418 - Sweden",
Expand Down Expand Up @@ -28,6 +40,15 @@
"now_playing.sound.minecraft:music/game/water/axolotl": "C418 - Axolotl",
"now_playing.sound.minecraft:music/game/water/dragon_fish": "C418 - Dragon Fish",

"now_playing.sound.minecraft:music/game/an_ordinary_day": "Kumi Tanioka - An Ordinary Day",
"now_playing.sound.minecraft:music/game/comforting_memories": "Kumi Tanioka - Comforting Memories",
"now_playing.sound.minecraft:music/game/floating_dream": "Kumi Tanioka - Floating Dream",
"now_playing.sound.minecraft:music/game/infinite_amethyst": "Lena Raine - Infinite Amethyst",
"now_playing.sound.minecraft:music/game/left_to_bloom": "Lena Raine - Left to Bloom",
"now_playing.sound.minecraft:music/game/one_more_day": "Lena Raine - One More Day",
"now_playing.sound.minecraft:music/game/stand_tall": "Lena Raine - Stand Tall",
"now_playing.sound.minecraft:music/game/wending": "Lena Raine - Wending",

"now_playing.sound.minecraft:music/game/nether/nether1": "C418 - Concrete Halls",
"now_playing.sound.minecraft:music/game/nether/nether2": "C418 - Dead Voxel",
"now_playing.sound.minecraft:music/game/nether/nether3": "C418 - Warmth",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/nowplaying.mixins.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"package": "com.github.scotsguy.nowplaying.mixin",
"compatibilityLevel": "JAVA_16",
"compatibilityLevel": "JAVA_17",
"refmap": "main.nowplaying.refmap.json",
"mixins": [
"MinecraftMixin",
Expand Down

0 comments on commit 5512459

Please sign in to comment.