9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2026-01-04 15:41:40 +00:00

Fix wrong config key

This commit is contained in:
Dreeam
2023-12-01 12:51:16 -05:00
parent af307b066c
commit 597cae69a1

View File

@@ -9,7 +9,7 @@ Original project: https://github.com/LeavesMC/Leaves
This patch is Powered by Syncmatica(https://github.com/End-Tech/syncmatica)
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
index 7c56e6bd76e8f8e5f9e925dc704be95e8a5532a1..bb3701298013bbdf3c6c43e23e2e422170c3efee 100644
index 47f2568bacb06ffc7d756bbe2ea36ef9582dd4f2..23828b5d2300d64ac5a5c1a5da1bb1ee14f45d24 100644
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
@@ -308,6 +308,7 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
@@ -30,7 +30,7 @@ index 7c56e6bd76e8f8e5f9e925dc704be95e8a5532a1..bb3701298013bbdf3c6c43e23e2e4221
public void tick() {
if (this.ackBlockChangesUpTo > -1) {
diff --git a/src/main/java/org/dreeam/leaf/LeafConfig.java b/src/main/java/org/dreeam/leaf/LeafConfig.java
index 5bd068203f787cba7e024bbb301065fd75d25f9e..318d41b0e1849a729fd32fe9c5842174d2b1d532 100644
index 5bd068203f787cba7e024bbb301065fd75d25f9e..5dcc4f3c3752ae48cb6728fa8cfc384466c24da0 100644
--- a/src/main/java/org/dreeam/leaf/LeafConfig.java
+++ b/src/main/java/org/dreeam/leaf/LeafConfig.java
@@ -251,11 +251,20 @@ public class LeafConfig {
@@ -45,9 +45,9 @@ index 5bd068203f787cba7e024bbb301065fd75d25f9e..318d41b0e1849a729fd32fe9c5842174
appleskinProtocol = getBoolean("network.protocol.appleskin-protocol", appleskinProtocol);
xaeroMapProtocol = getBoolean("network.protocol.xaero-map-protocol", xaeroMapProtocol);
xaeroMapServerID = getInt("network.protocol.xaero-map-server-id", xaeroMapServerID);
+ syncmaticaProtocol = getBoolean("settings.protocol.syncmatica.enable", syncmaticaProtocol);
+ syncmaticaQuota = getBoolean("settings.protocol.syncmatica.quota", syncmaticaQuota);
+ syncmaticaQuotaLimit = getInt("settings.protocol.syncmatica.quota-limit", syncmaticaQuotaLimit);
+ syncmaticaProtocol = getBoolean("network.protocol.syncmatica.enable", syncmaticaProtocol);
+ syncmaticaQuota = getBoolean("network.protocol.syncmatica.quota", syncmaticaQuota);
+ syncmaticaQuotaLimit = getInt("network.protocol.syncmatica.quota-limit", syncmaticaQuotaLimit);
+ if (syncmaticaProtocol) {
+ top.leavesmc.leaves.protocol.syncmatica.SyncmaticaProtocol.init();
+ }