update deps

This commit is contained in:
creeper123123321 2023-04-01 11:09:38 -03:00
parent 8161c3f97c
commit fda8d39147
12 changed files with 59 additions and 38 deletions

View File

@ -3,8 +3,8 @@
org.gradle.jvmargs=-Xms32M -Xmx4G -XX:+UseG1GC -XX:+UseStringDeduplication org.gradle.jvmargs=-Xms32M -Xmx4G -XX:+UseG1GC -XX:+UseStringDeduplication
loader_version=0.14.14 loader_version=0.14.14
viaver_version=4.6.2-SNAPSHOT viaver_version=4.6.3-SNAPSHOT
yaml_version=1.33 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

Binary file not shown.

View File

@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

18
gradlew vendored
View File

@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop. # Darwin, MinGW, and NonStop.
# #
# (3) This script is generated from the Groovy template # (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project. # within the Gradle project.
# #
# You can find Gradle at https://github.com/gradle/gradle/. # You can find Gradle at https://github.com/gradle/gradle/.
@ -80,10 +80,10 @@ do
esac esac
done done
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit # This is normally unused
# shellcheck disable=SC2034
APP_NAME="Gradle"
APP_BASE_NAME=${0##*/} APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@ -143,12 +143,16 @@ fi
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
case $MAX_FD in #( case $MAX_FD in #(
max*) max*)
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
MAX_FD=$( ulimit -H -n ) || MAX_FD=$( ulimit -H -n ) ||
warn "Could not query maximum file descriptor limit" warn "Could not query maximum file descriptor limit"
esac esac
case $MAX_FD in #( case $MAX_FD in #(
'' | soft) :;; #( '' | soft) :;; #(
*) *)
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
# shellcheck disable=SC3045
ulimit -n "$MAX_FD" || ulimit -n "$MAX_FD" ||
warn "Could not set maximum file descriptor limit to $MAX_FD" warn "Could not set maximum file descriptor limit to $MAX_FD"
esac esac
@ -205,6 +209,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \ org.gradle.wrapper.GradleWrapperMain \
"$@" "$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args. # Use "xargs" to parse quoted args.
# #
# With -n1 it outputs one arg per line, with the quotes and backslashes removed. # With -n1 it outputs one arg per line, with the quotes and backslashes removed.

11
gradlew.bat vendored
View File

@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0 set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=. if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0 set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME% set APP_HOME=%DIRNAME%
@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1 %JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute if %ERRORLEVEL% equ 0 goto execute
echo. echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
:end :end
@rem End local scope for the variables with windows NT shell @rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd if %ERRORLEVEL% equ 0 goto mainEnd
:fail :fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code! rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 set EXIT_CODE=%ERRORLEVEL%
exit /b 1 if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd :mainEnd
if "%OS%"=="Windows_NT" endlocal if "%OS%"=="Windows_NT" endlocal

View File

@ -1,16 +0,0 @@
pluginManagement {
repositories {
gradlePluginPortal()
maven { url = 'https://maven.fabricmc.net/' }
}
}
rootProject.name = "viafabric"
include "viafabric-mc18"
include "viafabric-mc114"
include "viafabric-mc115"
include "viafabric-mc116"
include "viafabric-mc117"
include "viafabric-mc118"
include "viafabric-mc119"

21
settings.gradle.kts Normal file
View File

@ -0,0 +1,21 @@
pluginManagement {
repositories {
gradlePluginPortal()
maven ("https://maven.fabricmc.net/")
}
}
rootProject.name = "viafabric"
include("viafabric-mc18")
include("viafabric-mc114")
include("viafabric-mc115")
include("viafabric-mc116")
include("viafabric-mc117")
include("viafabric-mc118")
include("viafabric-mc119")
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.4.0"
}

View File

@ -1,8 +1,8 @@
dependencies { dependencies {
minecraft("com.mojang:minecraft:1.8.9") minecraft("com.mojang:minecraft:1.8.9")
mappings("net.legacyfabric:yarn:1.8.9+build.423:v2") mappings("net.legacyfabric:yarn:1.8.9+build.458:v2")
modImplementation("net.legacyfabric.legacy-fabric-api:legacy-fabric-api:1.8.0+1.8.9") modImplementation("net.legacyfabric.legacy-fabric-api:legacy-fabric-api:1.9.0+1.8.9")
modImplementation("io.github.boogiemonster1o1:rewoven-modmenu:1.0.0+1.8.9") { modImplementation("io.github.boogiemonster1o1:rewoven-modmenu:1.0.0+1.8.9") {
isTransitive = false isTransitive = false
} }

View File

@ -32,7 +32,7 @@ public class ViaButton extends ButtonWidget {
// Modified copy-paste from LockButtonWidget // Modified copy-paste from LockButtonWidget
if (this.visible) { if (this.visible) {
client.getTextureManager().bindTexture(texturePath); client.getTextureManager().bindTexture(texturePath);
GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F); GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
boolean hover = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height; boolean hover = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height;
int v = startV; int v = startV;
if (hover) { if (hover) {

View File

@ -61,7 +61,7 @@ public class ViaConfigScreen extends Screen implements AbstractViaConfigScreen {
//this.children.add(protocolVersion); //this.children.add(protocolVersion);
buttons.add(new ListeneableButton("done".hashCode(), this.width / 2 - 100, this.height - 40, 200, 20, new TranslatableText("gui.done").asUnformattedString(), buttons.add(new ListeneableButton("done".hashCode(), this.width / 2 - 100, this.height - 40, 200, 20, new TranslatableText("gui.done").asUnformattedString(),
(buttonWidget) -> MinecraftClient.getInstance().openScreen(this.parent))); (buttonWidget) -> MinecraftClient.getInstance().setScreen(this.parent)));
} }
private void onChangeVersionField(String text) { private void onChangeVersionField(String text) {
@ -88,7 +88,7 @@ public class ViaConfigScreen extends Screen implements AbstractViaConfigScreen {
private void onClickClientSide(ButtonWidget widget) { private void onClickClientSide(ButtonWidget widget) {
if (!ViaFabric.config.isClientSideEnabled()) { if (!ViaFabric.config.isClientSideEnabled()) {
MinecraftClient.getInstance().openScreen(new ConfirmScreen( MinecraftClient.getInstance().setScreen(new ConfirmScreen(
(answer, id) -> { (answer, id) -> {
if (answer) { if (answer) {
ViaFabric.config.setClientSideEnabled(true); ViaFabric.config.setClientSideEnabled(true);
@ -96,7 +96,7 @@ public class ViaConfigScreen extends Screen implements AbstractViaConfigScreen {
ViaFabric.config.saveConfig(); ViaFabric.config.saveConfig();
widget.message = getClientSideText().asUnformattedString(); widget.message = getClientSideText().asUnformattedString();
} }
MinecraftClient.getInstance().openScreen(this); MinecraftClient.getInstance().setScreen(this);
}, },
new TranslatableText("gui.enable_client_side.question").asUnformattedString(), new TranslatableText("gui.enable_client_side.question").asUnformattedString(),
new TranslatableText("gui.enable_client_side.warning").asUnformattedString(), new TranslatableText("gui.enable_client_side.warning").asUnformattedString(),

View File

@ -3,6 +3,7 @@ package com.viaversion.fabric.mc18.mixin.debug.client;
import com.viaversion.fabric.common.handler.CommonTransformer; import com.viaversion.fabric.common.handler.CommonTransformer;
import com.viaversion.fabric.common.handler.FabricDecodeHandler; import com.viaversion.fabric.common.handler.FabricDecodeHandler;
import com.viaversion.viaversion.api.connection.ProtocolInfo; import com.viaversion.viaversion.api.connection.ProtocolInfo;
import com.viaversion.viaversion.api.connection.UserConnection;
import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelHandler;
import net.minecraft.client.MinecraftClient; import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.hud.DebugHud; import net.minecraft.client.gui.hud.DebugHud;
@ -24,11 +25,12 @@ public class MixinDebugHud {
ChannelHandler viaDecoder = ((MixinClientConnectionAccessor) MinecraftClient.getInstance().getNetworkHandler() ChannelHandler viaDecoder = ((MixinClientConnectionAccessor) MinecraftClient.getInstance().getNetworkHandler()
.getClientConnection()).getChannel().pipeline().get(CommonTransformer.HANDLER_DECODER_NAME); .getClientConnection()).getChannel().pipeline().get(CommonTransformer.HANDLER_DECODER_NAME);
if (viaDecoder instanceof FabricDecodeHandler) { if (viaDecoder instanceof FabricDecodeHandler) {
ProtocolInfo protocol = ((FabricDecodeHandler) viaDecoder).getInfo().getProtocolInfo(); UserConnection user = ((FabricDecodeHandler) viaDecoder).getInfo();
ProtocolInfo protocol = user.getProtocolInfo();
if (protocol != null) { if (protocol != null) {
ProtocolVersion serverVer = ProtocolVersion.getProtocol(protocol.getServerProtocolVersion()); ProtocolVersion serverVer = ProtocolVersion.getProtocol(protocol.getServerProtocolVersion());
ProtocolVersion clientVer = ProtocolVersion.getProtocol(protocol.getProtocolVersion()); ProtocolVersion clientVer = ProtocolVersion.getProtocol(protocol.getProtocolVersion());
line += " / C: " + clientVer + " S: " + serverVer + " A: " + protocol.getUser().isActive(); line += " / C: " + clientVer + " S: " + serverVer + " A: " + user.isActive();
} }
} }

View File

@ -29,7 +29,7 @@ public abstract class MixinMultiplayerScreen extends Screen {
20, // v Hover offset 20, // v Hover offset
new Identifier("viafabric:textures/gui/widgets.png"), new Identifier("viafabric:textures/gui/widgets.png"),
256, 256, // Texture size 256, 256, // Texture size
it -> MinecraftClient.getInstance().openScreen(new ViaConfigScreen(this)), it -> MinecraftClient.getInstance().setScreen(new ViaConfigScreen(this)),
new TranslatableText("gui.via_button").asUnformattedString()); new TranslatableText("gui.via_button").asUnformattedString());
if (ViaFabric.config.isHideButton()) enableClientSideViaVersion.visible = false; if (ViaFabric.config.isHideButton()) enableClientSideViaVersion.visible = false;
this.buttons.add(enableClientSideViaVersion); this.buttons.add(enableClientSideViaVersion);