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
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
|
2021-02-05 23:52:27 +01:00
|
|
|
index fb871480a55d73681f2a45f6f14b984807d51ba3..3f63f83b21d84a4fa1cfda217afb22c4cf7fd2ad 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-02-05 23:52:27 +01:00
|
|
|
@@ -2192,7 +2192,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
|
|
|
|
|