Skip to content

Commit 78cc123

Browse files
authored
Merge 1.5.7 1.19.4 (#250)
2 parents e71709b + eee17f9 commit 78cc123

File tree

21 files changed

+289
-297
lines changed

21 files changed

+289
-297
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ jobs:
101101
dependencies: |
102102
kotlin-for-forge
103103
cloth-config
104-
architectury-api
104+
architectury-api

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ common/build
55
/*/build/
66
build/
77

8-
/fabric/src/main/resources/rpmtw_platform_mod.accesswidener
9-
/quilt/src/main/resources/rpmtw_platform_mod.accesswidener
8+
fabric/src/generated/resources/rpmtw_platform_mod.accesswidener
9+
quilt/src/generated/resources/rpmtw_platform_mod.accesswidener
1010

1111
.architectury-transformer/
1212
.idea

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
# RPMTW Platform Mod
44

55
[![](https://img.shields.io/github/license/RPMTW/RPMTW-Platform-Mod.svg)](LICENSE)
6-
[![](https://img.shields.io/github/release/RPMTW/RPMTW-Platform-Mod.svg)](https://github.com/RPMTW/RPMTW-Platform-Mod/releases)
7-
![](http://cf.way2muchnoise.eu/versions/minecraft_rpmtw-update-mod_all.svg)
8-
[![](http://cf.way2muchnoise.eu/rpmtw-update-mod.svg)](https://www.curseforge.com/minecraft/mc-mods/rpmtw-update-mod)
6+
[![](https://img.shields.io/github/release/RPMTW/RPMTW-Platform-Mod.svg)](../../releases)
7+
![](https://cf.way2muchnoise.eu/versions/rpmtw-platform.svg)
8+
[![](https://cf.way2muchnoise.eu/rpmtw-platform.svg)](https://www.curseforge.com/minecraft/mc-mods/rpmtw-platform)
99
[![](https://img.shields.io/modrinth/dt/ZukQzaRP?label=Modrinth%20Downloads)](https://modrinth.com/mod/ZukQzaRP)
1010
<p>&nbsp;</p>
1111

1212
#### 🌐 README Languages
1313

1414
- English (Current Language)
15-
- [繁體中文](https://github.com/RPMTW/RPMTW-Platform-Mod/blob/main/README/zh_tw.md)
16-
- [简体中文](https://github.com/RPMTW/RPMTW-Platform-Mod/blob/main/README/zh_cn.md)
15+
- [繁體中文](README/zh_tw.md)
16+
- [简体中文](README/zh_cn.md)
1717

1818
## 📚 Introduction
1919

README/zh_cn.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
# RPMTW 平台
44

5-
[![](https://img.shields.io/github/license/RPMTW/RPMTW-Platform-Mod.svg)](LICENSE)
6-
[![](https://img.shields.io/github/release/RPMTW/RPMTW-Platform-Mod.svg)](https://github.com/RPMTW/RPMTW-Platform-Mod/releases)
7-
![](http://cf.way2muchnoise.eu/versions/minecraft_rpmtw-update-mod_all.svg)
8-
[![](http://cf.way2muchnoise.eu/rpmtw-update-mod.svg)](https://www.curseforge.com/minecraft/mc-mods/rpmtw-update-mod)
5+
[![](https://img.shields.io/github/license/RPMTW/RPMTW-Platform-Mod.svg)](../LICENSE)
6+
[![](https://img.shields.io/github/release/RPMTW/RPMTW-Platform-Mod.svg)](../../../releases)
7+
![](https://cf.way2muchnoise.eu/versions/rpmtw-platform.svg)
8+
[![](https://cf.way2muchnoise.eu/rpmtw-platform.svg)](https://www.curseforge.com/minecraft/mc-mods/rpmtw-update-mod)
99
[![](https://img.shields.io/modrinth/dt/ZukQzaRP?label=Modrinth%20Downloads)](https://modrinth.com/mod/ZukQzaRP)
1010
<p>&nbsp;</p>
1111
<p>&nbsp;</p>
1212

1313
#### 🌐 自叙文件语言
1414

15-
- [English](https://github.com/RPMTW/RPMTW-Platform-Mod/blob/main/README.md)
16-
- [繁體中文](https://github.com/RPMTW/RPMTW-Platform-Mod/blob/main/README/zh_tw.md)
17-
- 简体中文 (当前语言)
15+
- [English](../../README.md)
16+
- [繁體中文](zh_tw.md)
17+
- 简体中文当前语言
1818

1919
## 📚 介绍
2020

21-
整合了RPMTW各项服务的MOD,涵盖翻译、百科、宇宙通信、中文输入优化等功能,让 Minecraft 中文玩家获得更好的游戏体验。
21+
整合了 RPMTW 各项服务的 MOD,涵盖翻译、百科、宇宙通信、中文输入优化等功能,让 Minecraft 中文玩家获得更好的游戏体验。
2222

2323
## 🎨 特色功能
2424

@@ -41,7 +41,7 @@
4141

4242
- ### 机器翻译
4343

44-
遇到没人工翻译的内容吗?全部交给 AI 吧!不再被语言隔阂导致无法游玩MOD
44+
遇到没人工翻译的内容吗?全部交给 AI 吧!不再被语言隔阂导致无法游玩 MOD
4545

4646
- ### 开启 Crowdin 页面
4747

@@ -73,4 +73,4 @@
7373

7474
## 🎓 许可证
7575

76-
[GNU 通用公共许可证 3.0 版 (GPL3)](https://www.gnu.org/licenses/gpl-3.0.html)
76+
[GNU 通用公共许可证 3.0 版GPL3](https://www.gnu.org/licenses/gpl-3.0.html)

README/zh_tw.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22

33
# RPMTW 平台
44

5-
[![](https://img.shields.io/github/license/RPMTW/RPMTW-Platform-Mod.svg)](LICENSE)
6-
[![](https://img.shields.io/github/release/RPMTW/RPMTW-Platform-Mod.svg)](https://github.com/RPMTW/RPMTW-Platform-Mod/releases)
7-
![](http://cf.way2muchnoise.eu/versions/minecraft_rpmtw-update-mod_all.svg)
8-
[![](http://cf.way2muchnoise.eu/rpmtw-update-mod.svg)](https://www.curseforge.com/minecraft/mc-mods/rpmtw-update-mod)
5+
[![](https://img.shields.io/github/license/RPMTW/RPMTW-Platform-Mod.svg)](../LICENSE)
6+
[![](https://img.shields.io/github/release/RPMTW/RPMTW-Platform-Mod.svg)](../../../releases)
7+
![](https://cf.way2muchnoise.eu/versions/rpmtw-platform.svg)
8+
[![](https://cf.way2muchnoise.eu/rpmtw-platform.svg)](https://www.curseforge.com/minecraft/mc-mods/rpmtw-update-mod)
99
[![](https://img.shields.io/modrinth/dt/ZukQzaRP?label=Modrinth%20Downloads)](https://modrinth.com/mod/ZukQzaRP)
1010
<p></p>
1111
<p>&nbsp;</p>
1212

1313
#### 🌐 說明檔案語言
1414

15-
- [English](https://github.com/RPMTW/RPMTW-Platform-Mod/blob/main/README.md)
16-
- 繁體中文 (目前語言)
17-
- [简体中文](https://github.com/RPMTW/RPMTW-Platform-Mod/blob/main/README/zh_cn.md)
15+
- [English](../README.md)
16+
- 繁體中文目前語言
17+
- [简体中文](zh_cn.md)
1818

1919
## 📚 介紹
2020

21-
整合了RPMTW各項服務的模組,涵蓋翻譯、百科、宇宙通訊、中文輸入優化等功能,讓 Minecraft 中文玩家獲得更好的遊戲體驗。
21+
整合了 RPMTW 各項服務的模組,涵蓋翻譯、百科、宇宙通訊、中文輸入優化等功能,讓 Minecraft 中文玩家獲得更好的遊戲體驗。
2222

2323
## 🎨 特色功能
2424

@@ -64,7 +64,7 @@
6464

6565
### ️ 使用的技術
6666

67-
- [Kotlin](https://kotlinlang.org/)
67+
- [Kotlin](https://kotlinlang.org)
6868
- Java
6969
- JVM
7070
- [Architectury](https://github.com/architectury)
@@ -73,4 +73,4 @@
7373

7474
## 🎓 授權條款
7575

76-
[GNU 通用公眾授權條款 3.0 版 (GPL3)](https://www.gnu.org/licenses/gpl-3.0.html)
76+
[GNU 通用公眾授權條款 3.0 版GPL3](https://www.gnu.org/licenses/gpl-3.0.html)

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
66
plugins {
77
base
88
id("org.jetbrains.kotlin.jvm") version "1.8.21"
9-
id("architectury-plugin") version "3.4.143"
10-
id("dev.architectury.loom") version "1.0.+" apply false
9+
id("architectury-plugin") version "3.4.146"
10+
id("dev.architectury.loom") version "1.2.+" apply false
1111
id("com.github.johnrengelman.shadow") version "7.1.2"
1212
}
1313

common/build.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ dependencies {
55
// Remove the next line if you don't want to depend on the API
66
modApi("dev.architectury:architectury:${project.property("architectury_version").toString()}")
77
modApi("me.shedaniel.cloth:cloth-config:${project.property("cloth_config_version").toString()}")
8-
modApi(
8+
implementation(
99
group = "com.github.RPMTW",
1010
name = "RPMTW-API-Client-Kotlin",
1111
version = project.property("rpmtw_api_client_version").toString()
1212
)
13+
implementation("com.github.kittinunf.fuel:fuel:2.3.1")
14+
implementation("com.github.kittinunf.fuel:fuel-gson:2.3.1")
15+
implementation("com.github.kittinunf.fuel:fuel-coroutines:2.3.1")
1316
modApi(group = "io.sentry", name = "sentry", version = project.property("sentry_version").toString())
1417
}
1518

common/src/main/kotlin/com/rpmtw/rpmtw_platform_mod/gui/widgets/RPMTWCheckbox.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ package com.rpmtw.rpmtw_platform_mod.gui.widgets
22

33
import com.mojang.blaze3d.vertex.PoseStack
44
import net.minecraft.client.Minecraft
5+
import net.minecraft.client.gui.ComponentPath
56
import net.minecraft.client.gui.components.Checkbox
7+
import net.minecraft.client.gui.navigation.FocusNavigationEvent
68
import net.minecraft.network.chat.Component
79

810
class RPMTWCheckbox(
@@ -40,4 +42,13 @@ class RPMTWCheckbox(
4042
client.screen?.renderTooltip(matrices, Component.literal(tooltip), mouseX, mouseY)
4143
}
4244
}
45+
46+
override fun nextFocusPath(focusNavigationEvent: FocusNavigationEvent): ComponentPath? {
47+
// To prevent the user from being unable to execute the previous commands, disable arrow navigation for this button.
48+
if (focusNavigationEvent is FocusNavigationEvent.ArrowNavigation) {
49+
return null
50+
}
51+
52+
return super.nextFocusPath(focusNavigationEvent)
53+
}
4354
}

common/src/main/kotlin/com/rpmtw/rpmtw_platform_mod/gui/widgets/TranslucentButton.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ package com.rpmtw.rpmtw_platform_mod.gui.widgets
22

33
import com.mojang.blaze3d.vertex.PoseStack
44
import net.minecraft.client.Minecraft
5+
import net.minecraft.client.gui.ComponentPath
56
import net.minecraft.client.gui.components.Button
7+
import net.minecraft.client.gui.navigation.FocusNavigationEvent
68
import net.minecraft.network.chat.Component
79

810
class TranslucentButton(
@@ -27,4 +29,13 @@ class TranslucentButton(
2729
)
2830
}
2931
}
32+
33+
override fun nextFocusPath(focusNavigationEvent: FocusNavigationEvent): ComponentPath? {
34+
// To prevent the user from being unable to execute the previous commands, disable arrow navigation for this button.
35+
if (focusNavigationEvent is FocusNavigationEvent.ArrowNavigation) {
36+
return null
37+
}
38+
39+
return super.nextFocusPath(focusNavigationEvent)
40+
}
3041
}

fabric-like/build.gradle.kts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@ architectury {
22
common(project.property("enabled_platforms").toString().split(","))
33
}
44

5-
val common by configurations.registering
6-
configurations {
7-
compileClasspath {
8-
extendsFrom(common.get())
9-
}
10-
11-
runtimeClasspath {
12-
extendsFrom(common.get())
13-
}
14-
}
15-
165
repositories {
176
mavenCentral()
187
maven {
@@ -34,11 +23,10 @@ dependencies {
3423
// Remove the next line if you don't want to depend on the API
3524
modApi("dev.architectury:architectury-fabric:${project.property("architectury_version")}")
3625

37-
// Patchouli currently doesn't support Minecraft 1.19.4
38-
// modImplementation("vazkii.patchouli:Patchouli:${project.property("patchouli_version")}-FABRIC")
26+
modImplementation("vazkii.patchouli:Patchouli:${project.property("patchouli_version")}-FABRIC")
3927
modImplementation("com.terraformersmc:modmenu:${project.property("modmenu_version")}")
4028

41-
"compileClasspath"(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
29+
implementation(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
4230
}
4331

4432
val accessWidenerFile = project(":common").file("src/main/resources/rpmtw_platform_mod.accesswidener")

0 commit comments

Comments
 (0)