Default disable VV update checker

This commit is contained in:
FlorianMichael 2024-06-05 00:29:24 +02:00
parent 3366b6766e
commit b230a9e2f7
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
4 changed files with 4 additions and 5 deletions

View File

@ -34,7 +34,6 @@ import java.util.concurrent.CompletableFuture;
/*
* TODO | Port 1.20.6
* - ClientPlayNetworkHandler#processAll in onEnterReconfiguration is new
* - ClientPlayerInteractionManager#interactBlockInternal added new condition
* - Camera zoom calculation uses entity size now (?)
* - MouseHandling changed (not sure if relevant)
@ -43,7 +42,6 @@ import java.util.concurrent.CompletableFuture;
* - Particle handling has slightly changed
* - handleOpenBook now also handles writeable book contents (not sure if relevant)
* - Entity fall damage calculation is different
* -
*
* TODO | General
* - Make recipe fixes dynamic instead of a data dump in java classes

View File

@ -260,7 +260,7 @@ public class ProtocolTranslator {
/**
* Apply recommended config options to the ViaVersion config files
*
* @param configFolder The directory where the ViaVersion config files are located
* @param configFolder The directory where the ViaVersion config files is located
*/
private static void patchConfigs(final File configFolder) {
configFolder.mkdirs();
@ -268,6 +268,7 @@ public class ProtocolTranslator {
try {
final File viaVersionConfig = new File(configFolder, "viaversion.yml");
Files.writeString(viaVersionConfig.toPath(), """
check-for-updates: false
fix-infested-block-breaking: false
shield-blocking: false
no-delay-shield-blocking: true

View File

@ -104,7 +104,7 @@ public abstract class VFPListEntry extends AlwaysSelectedEntryListWidget.Entry<V
*/
@Override
public void render(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) {
// Allows cross sharing of global variables between util methods
// Allows cross-sharing of global variables between util methods
this.context = context;
this.x = x;
this.y = y;

View File

@ -95,7 +95,7 @@ public class VFPScreen extends Screen {
this.subtitle = subtitle;
this.subtitlePressAction = subtitlePressAction;
if (subtitleWidget != null) { // Allows to remove the subtitle when calling this method twice.
if (subtitleWidget != null) { // Allows removing the subtitle when calling this method twice.
remove(subtitleWidget);
subtitleWidget = null;
}