19972e09b8
5a0150f586ed3eb15fe6f1f596d1a5a7d806f0f9 Fix ITEM_BREAK e6a3911057bd94d8bd7021cbb4923fb84fb106d1 Upstream merge d1cdcf8d4c3639f956474f02ed662517cffbe23e Remove old patch 068df64aeee368377e1673667bffc7a6dcf90554 Rebuild all patches
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From ef2f6fc7c62a328bd003a96fb695173fd970be61 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Wed, 16 Apr 2014 01:40:30 -0400
|
|
Subject: [PATCH] Convert Horses owner to UUID
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityHorse.java b/src/main/java/net/minecraft/server/EntityHorse.java
|
|
index db86610..ac37892 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityHorse.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityHorse.java
|
|
@@ -1018,6 +1018,17 @@ public class EntityHorse extends EntityAnimal implements IInventoryListener {
|
|
s = nbttagcompound.getString("OwnerUUID");
|
|
} else {
|
|
String s1 = nbttagcompound.getString("Owner");
|
|
+ // Spigot start
|
|
+ if ( s1 == null || s1.isEmpty() )
|
|
+ {
|
|
+ if (nbttagcompound.hasKey("OwnerName")) {
|
|
+ String owner = nbttagcompound.getString("OwnerName");
|
|
+ if (owner != null && !owner.isEmpty()) {
|
|
+ s1 = owner;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ // Spigot end
|
|
|
|
s = NameReferencingFileConverter.a(s1);
|
|
}
|
|
--
|
|
2.1.0
|
|
|