1.20 Pre-Release 6 for ViaFabric. (#248)

This commit is contained in:
Kichura 2023-05-28 15:36:49 +02:00 committed by GitHub
parent 6c0739b4ab
commit 35287e4c29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -2,12 +2,12 @@
# rip my ram # rip my ram
org.gradle.jvmargs=-Xms32M -Xmx4G -XX:+UseG1GC -XX:+UseStringDeduplication org.gradle.jvmargs=-Xms32M -Xmx4G -XX:+UseG1GC -XX:+UseStringDeduplication
loader_version=0.14.19 loader_version=0.14.21
viaver_version=4.7.0-1.20-pre1-SNAPSHOT viaver_version=4.7.0-1.20-pre6-SNAPSHOT
yaml_version=2.0 yaml_version=2.0
publish_mc_versions=1.19.4, 1.18.2, 1.17.1, 1.16.5, 1.15.2, 1.14.4, 1.8.9 publish_mc_versions=1.19.4, 1.18.2, 1.17.1, 1.16.5, 1.15.2, 1.14.4, 1.8.9
# example: 1.19.1-rc2 # example: 1.19.1-rc2
modrinth_mc_snapshot=1.20-pre1 modrinth_mc_snapshot=1.20-pre6
# example: 1.19-Snapshot # example: 1.19-Snapshot
curseforge_mc_snapshot=1.20-Snapshot curseforge_mc_snapshot=1.20-Snapshot

View File

@ -1,8 +1,8 @@
dependencies { dependencies {
minecraft("com.mojang:minecraft:1.20-pre1") minecraft("com.mojang:minecraft:1.20-pre6")
mappings("net.fabricmc:yarn:1.20-pre1+build.1:v2") mappings("net.fabricmc:yarn:1.20-pre6+build.2:v2")
modImplementation("net.fabricmc.fabric-api:fabric-api:0.80.2+1.20") modImplementation("net.fabricmc.fabric-api:fabric-api:0.82.1+1.20")
modImplementation("com.terraformersmc:modmenu:7.0.0-beta.2") modImplementation("com.terraformersmc:modmenu:7.0.0-beta.2")
} }

View File

@ -32,7 +32,7 @@ public class NMSCommandSender implements ViaCommandSender {
@Override @Override
public void sendMessage(String s) { public void sendMessage(String s) {
if (source instanceof ServerCommandSource) { if (source instanceof ServerCommandSource) {
((ServerCommandSource) source).sendFeedback(fromLegacy(s), false); ((ServerCommandSource) source).sendFeedback(() -> fromLegacy(s), false);
} else if (source instanceof FabricClientCommandSource) { } else if (source instanceof FabricClientCommandSource) {
((FabricClientCommandSource) source).sendFeedback(fromLegacy(s)); ((FabricClientCommandSource) source).sendFeedback(fromLegacy(s));
} }