2014-07-21 22:46:54 +02:00
|
|
|
From 0000000000000000000000000000000000000000 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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/EntityHorse.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityHorse.java
|
|
|
|
@@ -0,0 +0,0 @@ public class EntityHorse extends EntityAnimal implements IInventoryListener {
|
2014-11-28 02:17:45 +01:00
|
|
|
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;
|
|
|
|
+ }
|
|
|
|
+ }
|
2014-07-21 22:46:54 +02:00
|
|
|
+ }
|
2014-11-28 02:17:45 +01:00
|
|
|
+ // Spigot end
|
|
|
|
|
|
|
|
s = NameReferencingFileConverter.a(s1);
|
|
|
|
}
|
2014-07-21 22:46:54 +02:00
|
|
|
--
|