2023-11-05 00:12:47 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: NonSwag <mrminecraft00@gmail.com>
|
|
|
|
Date: Sun, 8 Oct 2023 09:55:56 +0200
|
|
|
|
Subject: [PATCH] fix secure profile with proxy online mode
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java b/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
|
2023-12-06 19:18:53 +01:00
|
|
|
index db363bca264e37c29fda58291246aba0d3759de0..58536aabf607015939a1326f80207c0a06eed8ff 100644
|
2023-11-05 00:12:47 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/dedicated/DedicatedServer.java
|
2023-12-06 19:18:53 +01:00
|
|
|
@@ -638,7 +638,11 @@ public class DedicatedServer extends MinecraftServer implements ServerInterface
|
2023-11-05 00:12:47 +01:00
|
|
|
public boolean enforceSecureProfile() {
|
|
|
|
DedicatedServerProperties dedicatedserverproperties = this.getProperties();
|
2023-12-06 19:18:53 +01:00
|
|
|
|
|
|
|
- return dedicatedserverproperties.enforceSecureProfile && dedicatedserverproperties.onlineMode && this.services.canValidateProfileKeys();
|
2023-11-05 00:12:47 +01:00
|
|
|
+ // Paper start - fix secure profile with proxy online mode
|
|
|
|
+ return dedicatedserverproperties.enforceSecureProfile
|
|
|
|
+ && io.papermc.paper.configuration.GlobalConfiguration.get().proxies.isProxyOnlineMode()
|
2023-12-06 19:18:53 +01:00
|
|
|
+ && this.services.canValidateProfileKeys();
|
2023-11-05 00:12:47 +01:00
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|