2014-04-18 17:08:19 +00:00
|
|
|
From 1441910574b7f650f36372c0c1321ce86c8f8958 Mon Sep 17 00:00:00 2001
|
2014-04-16 06:14:26 +00:00
|
|
|
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
|
2014-04-18 17:08:19 +00:00
|
|
|
index 7d67210..6104597 100644
|
2014-04-16 06:14:26 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityHorse.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityHorse.java
|
2014-04-18 17:08:19 +00:00
|
|
|
@@ -1001,6 +1001,14 @@ public class EntityHorse extends EntityAnimal implements IInventoryListener {
|
2014-04-16 06:14:26 +00:00
|
|
|
if (nbttagcompound.hasKeyOfType("OwnerUUID", 8)) {
|
|
|
|
this.setOwnerUUID(nbttagcompound.getString("OwnerUUID"));
|
|
|
|
}
|
|
|
|
+ // Spigot start
|
|
|
|
+ else if (nbttagcompound.hasKey("OwnerName")) {
|
|
|
|
+ String owner = nbttagcompound.getString("OwnerName");
|
|
|
|
+ if (owner != null && !owner.isEmpty()) {
|
|
|
|
+ this.setOwnerUUID(NameReferencingFileConverter.a(owner));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ // Spigot end
|
|
|
|
// CraftBukkit start
|
|
|
|
if (nbttagcompound.hasKey("Bukkit.MaxDomestication")) {
|
|
|
|
this.maxDomestication = nbttagcompound.getInt("Bukkit.MaxDomestication");
|
|
|
|
--
|
2014-04-18 17:08:19 +00:00
|
|
|
1.9.1
|
2014-04-16 06:14:26 +00:00
|
|
|
|