-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sync on Velocity servers (1.19.1) (#69)
* Fix sync on Velocity servers Partial backport of 3d83cd3 Signed-off-by: unilock <[email protected]> * Move proxy mod checks to main module Signed-off-by: unilock <[email protected]> --------- Signed-off-by: unilock <[email protected]>
- Loading branch information
Katherine
authored
May 20, 2023
1 parent
a151e50
commit 72d6efe
Showing
7 changed files
with
65 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
polymer/src/main/java/eu/pb4/polymer/impl/networking/NetConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package eu.pb4.polymer.impl.networking; | ||
|
||
public class NetConfig { | ||
public String _c1 = "Sends GameJoin packet, only enable if sync does work (most likely for servers under proxy)"; | ||
public boolean sendGameJoinBeforeSync = false; | ||
} |
14 changes: 14 additions & 0 deletions
14
polymer/src/main/java/eu/pb4/polymer/impl/networking/NetImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package eu.pb4.polymer.impl.networking; | ||
|
||
import eu.pb4.polymer.impl.PolymerImpl; | ||
import eu.pb4.polymer.impl.compat.CompatStatus; | ||
|
||
public class NetImpl { | ||
public static final boolean SEND_GAME_JOIN_PACKET; | ||
|
||
static { | ||
var config = PolymerImpl.loadConfig("networking", NetConfig.class); | ||
|
||
SEND_GAME_JOIN_PACKET = config.sendGameJoinBeforeSync || CompatStatus.PROXY_MODS; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters