Skip to content

Commit

Permalink
Update 0020-Alternative-Keepalive-Handling.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
AltronMaxX committed Dec 22, 2023
1 parent 09fa425 commit b5dc1ae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion patches/server/0020-Alternative-Keepalive-Handling.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Subject: [PATCH] Alternative-Keepalive-Handling


diff --git a/src/main/java/net/edenor/foldenor/config/FoldenorConfig.java b/src/main/java/net/edenor/foldenor/config/FoldenorConfig.java
index 3e4af65b58540520a7cde6da06aedadff6e2369c..2fd84774ff73dba2b210fc7419ab8da4ee48beec 100644
index 3e4af65b58540520a7cde6da06aedadff6e2369c..645345766a0a3f9e92d079c7e2eb8394a216e9f1 100644
--- a/src/main/java/net/edenor/foldenor/config/FoldenorConfig.java
+++ b/src/main/java/net/edenor/foldenor/config/FoldenorConfig.java
@@ -26,6 +26,7 @@ public class FoldenorConfig {
Expand All @@ -16,6 +16,14 @@ index 3e4af65b58540520a7cde6da06aedadff6e2369c..2fd84774ff73dba2b210fc7419ab8da4

public static boolean vanilaEndPortalTeleportation = false;

@@ -127,6 +128,7 @@ public class FoldenorConfig {
private static void networkSettings() {
sendNullEntityPackets = getBoolean("network.send-null-entity-packets", sendNullEntityPackets);
appleskinProtocol = getBoolean("network.appleskin-protocol", appleskinProtocol);
+ alternateKeepAlive = getBoolean("network.alternate-keepalive", alternateKeepAlive);
}

protected static void set(String path, Object val) {
diff --git a/src/main/java/net/minecraft/server/network/ServerCommonPacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerCommonPacketListenerImpl.java
index b3e9deb74c514472be6b0222f35b9c93c9f8d5ee..36b10e3bfc4da32ed55a057e816df07e8c6f1ad4 100644
--- a/src/main/java/net/minecraft/server/network/ServerCommonPacketListenerImpl.java
Expand Down

0 comments on commit b5dc1ae

Please sign in to comment.