2020-08-25 04:22:08 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: DigitalRegent <misterwener@gmail.com>
|
|
|
|
Date: Sat, 11 Apr 2020 13:10:58 +0200
|
|
|
|
Subject: [PATCH] Brand support
|
|
|
|
|
2021-02-21 20:45:33 +01:00
|
|
|
TODO(Proximyst): Fixup this into the other brand support patch
|
2020-08-25 04:22:08 +02:00
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2021-03-03 23:43:45 +01:00
|
|
|
index ca8e6bfa3d472b5eef6ba9aca749a207e02f71c7..5dbe8b797ae11fb2d6dfd5e66a1d17d307bec978 100644
|
2020-08-25 04:22:08 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2021-03-03 23:43:45 +01:00
|
|
|
@@ -2380,7 +2380,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
2020-08-25 04:22:08 +02:00
|
|
|
// Paper start - brand support
|
|
|
|
@Override
|
|
|
|
public String getClientBrandName() {
|
|
|
|
- return getHandle().playerConnection.getClientBrandName();
|
|
|
|
+ return getHandle().playerConnection != null ? getHandle().playerConnection.getClientBrandName() : null;
|
|
|
|
}
|
|
|
|
// Paper end
|
|
|
|
|