Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
james58899 committed Oct 11, 2023
1 parent 2ea148c commit 16dd2c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ processResources {

tasks.withType(JavaCompile).configureEach {
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it.options.release = 17
it.options.release.set(17)
}

java {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/one/oktw/FabricProxyLite.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void onLoad(String mixinPackage) {
if (!Files.exists(configFile)) {
config = new ModConfig();
} else {
config = new Toml().read(FabricLoader.getInstance().getConfigDir().resolve("FabricProxy-Lite.toml").toFile()).to(ModConfig.class);
config = new Toml().read(configFile.toFile()).to(ModConfig.class);
}

// Update config
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/one/oktw/VelocityLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@

public class VelocityLib {
public static final Identifier PLAYER_INFO_CHANNEL = new Identifier("velocity", "player_info");
public static final int MODERN_LAZY_SESSION = 4;

public static final int MODERN_FORWARDING_DEFAULT = 1;
public static final int MODERN_FORWARDING_WITH_KEY = 2;
public static final int MODERN_FORWARDING_WITH_KEY_V2 = 3;
public static final int MODERN_LAZY_SESSION = 4;
public static final PacketByteBuf PLAYER_INFO_PACKET = new PacketByteBuf(Unpooled.wrappedBuffer(new byte[]{(byte) VelocityLib.MODERN_LAZY_SESSION}).asReadOnly());
private static final int[] SUPPORTED_FORWARDING_VERSION = {MODERN_FORWARDING_DEFAULT, MODERN_LAZY_SESSION};

Expand Down

0 comments on commit 16dd2c9

Please sign in to comment.