aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0177-Tameable-getOwnerUniqueId-API.patch
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2023-02-15 13:27:40 -0800
committerGitHub <[email protected]>2023-02-15 13:27:40 -0800
commitafe633df085f1c78802170bca6d03a6873fc0344 (patch)
tree367330b21a1978676e13790c00d7e2c3f4010a08 /patches/server/0177-Tameable-getOwnerUniqueId-API.patch
parentf2f9e8cc4dde8b2e754d193d553b99fa824515b1 (diff)
downloadPaper-afe633df085f1c78802170bca6d03a6873fc0344.tar.gz
Paper-afe633df085f1c78802170bca6d03a6873fc0344.zip
convert API/server tests to mockito (#8848)
* convert API tests to mockito * convert server tests to mockito * add co-author
Diffstat (limited to 'patches/server/0177-Tameable-getOwnerUniqueId-API.patch')
-rw-r--r--patches/server/0177-Tameable-getOwnerUniqueId-API.patch38
1 files changed, 0 insertions, 38 deletions
diff --git a/patches/server/0177-Tameable-getOwnerUniqueId-API.patch b/patches/server/0177-Tameable-getOwnerUniqueId-API.patch
deleted file mode 100644
index 7fca628e8a..0000000000
--- a/patches/server/0177-Tameable-getOwnerUniqueId-API.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Aikar <[email protected]>
-Date: Sat, 24 Feb 2018 01:14:55 -0500
-Subject: [PATCH] Tameable#getOwnerUniqueId API
-
-This is faster if all you need is the UUID, as .getOwner() will cause
-an OfflinePlayer to be loaded from disk.
-
-diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftAbstractHorse.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftAbstractHorse.java
-index a5202ee012034678efbbd5ca1eccf2fd72a315bd..254d4f2e45d7c8f572a4368eccd84560d4d0d836 100644
---- a/src/main/java/org/bukkit/craftbukkit/entity/CraftAbstractHorse.java
-+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftAbstractHorse.java
-@@ -89,6 +89,10 @@ public abstract class CraftAbstractHorse extends CraftAnimals implements Abstrac
- }
- }
-
-+ @Override
-+ public UUID getOwnerUniqueId() {
-+ return getOwnerUUID();
-+ }
- public UUID getOwnerUUID() {
- return this.getHandle().getOwnerUUID();
- }
-diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftTameableAnimal.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftTameableAnimal.java
-index f225da459d0c9b5b5322ba3256e63880a7b4ad5d..428437970cac144be53cd0e30af7af0cd1ce603b 100644
---- a/src/main/java/org/bukkit/craftbukkit/entity/CraftTameableAnimal.java
-+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftTameableAnimal.java
-@@ -17,6 +17,10 @@ public class CraftTameableAnimal extends CraftAnimals implements Tameable, Creat
- return (TamableAnimal) super.getHandle();
- }
-
-+ @Override
-+ public UUID getOwnerUniqueId() {
-+ return getOwnerUUID();
-+ }
- public UUID getOwnerUUID() {
- try {
- return this.getHandle().getOwnerUUID();