2020-08-25 02:22:08 +00: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 19:45:33 +00:00
|
|
|
TODO(Proximyst): Fixup this into the other brand support patch
|
2020-08-25 02:22:08 +00:00
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2021-02-24 09:32:17 +00:00
|
|
|
index d7e73a7f54adc0e0b489a954edb2cf3548851c66..3a014712aee6736a2903574d124aff12639d0f88 100644
|
2020-08-25 02:22:08 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2021-02-24 09:32:17 +00:00
|
|
|
@@ -2410,7 +2410,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
2020-08-25 02:22:08 +00:00
|
|
|
// Paper start - brand support
|
|
|
|
@Override
|
|
|
|
public String getClientBrandName() {
|
|
|
|
- return getHandle().playerConnection.getClientBrandName();
|
|
|
|
+ return getHandle().playerConnection != null ? getHandle().playerConnection.getClientBrandName() : null;
|
|
|
|
}
|
|
|
|
// Paper end
|
|
|
|
|