Yatopia/patches/server/0012-EMC-Disable-UUID-conversion-Already-done.patch
2020-06-23 01:09:14 +02:00

39 lines
1.7 KiB
Diff

From 4be963b73f959de6fa6d5aa2c7c52e1a8bb90e0d Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Mon, 14 Apr 2014 20:44:38 -0400
Subject: [PATCH] EMC Disable UUID conversion - Already done
---
src/main/java/net/minecraft/server/DedicatedServer.java | 2 +-
.../java/net/minecraft/server/NameReferencingFileConverter.java | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java
index 1f1243ae8..77651d228 100644
--- a/src/main/java/net/minecraft/server/DedicatedServer.java
+++ b/src/main/java/net/minecraft/server/DedicatedServer.java
@@ -250,7 +250,7 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer
DedicatedServer.LOGGER.warn("To change this, set \"online-mode\" to \"true\" in the server.properties file.");
}
- if (this.convertNames()) {
+ if (false) { // EMC - disable UUID Conversion
this.getUserCache().c();
}
diff --git a/src/main/java/net/minecraft/server/NameReferencingFileConverter.java b/src/main/java/net/minecraft/server/NameReferencingFileConverter.java
index d3c2e1bed..286564108 100644
--- a/src/main/java/net/minecraft/server/NameReferencingFileConverter.java
+++ b/src/main/java/net/minecraft/server/NameReferencingFileConverter.java
@@ -425,6 +425,7 @@ public class NameReferencingFileConverter {
}
public static boolean e(MinecraftServer minecraftserver) {
+ if (true) return true; // EMC - Disable UUID conversion
boolean flag = b();
flag = flag && f(minecraftserver);
--
2.25.1.windows.1