修复部分因为大小写名字造成的问题,例如Ban
This commit is contained in:
@ -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_)
|
||||
|
Reference in New Issue
Block a user