3
0

修复部分因为大小写名字造成的问题,例如Ban

This commit is contained in:
2017-07-20 13:38:35 +08:00
parent d06c424b1f
commit 5fcbe3c63a
4 changed files with 47 additions and 5 deletions

View File

@ -1,10 +1,12 @@
--- ../src-base/minecraft/net/minecraft/server/management/UserListOps.java
+++ ../src-work/minecraft/net/minecraft/server/management/UserListOps.java
@@ -35,6 +35,7 @@
@@ -35,7 +35,8 @@
protected String func_152699_b(GameProfile p_152699_1_)
{
+ if (p_152699_1_ == null || p_152699_1_.getId() == null) return "invalid"; // Cauldron - handle GameProfiles with no ID
return p_152699_1_.getId().toString();
- return p_152699_1_.getId().toString();
+ if (p_152699_1_ == null) return "invalid"; // Cauldron - handle GameProfiles with no ID
+ return p_152699_1_.getName().toLowerCase();
}
public GameProfile func_152700_a(String p_152700_1_)