aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0085-Optimize-Hoppers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0085-Optimize-Hoppers.patch')
-rw-r--r--patches/api/0085-Optimize-Hoppers.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/api/0085-Optimize-Hoppers.patch b/patches/api/0085-Optimize-Hoppers.patch
new file mode 100644
index 0000000000..3cf0268664
--- /dev/null
+++ b/patches/api/0085-Optimize-Hoppers.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Aikar <[email protected]>
+Date: Thu, 18 Jan 2018 01:00:27 -0500
+Subject: [PATCH] Optimize Hoppers
+
+
+diff --git a/src/main/java/org/bukkit/event/inventory/InventoryMoveItemEvent.java b/src/main/java/org/bukkit/event/inventory/InventoryMoveItemEvent.java
+index 919cc993e3cb1c14e2a3aebf90e6cc0fa6fbc17f..0161b8a94c7e8774fec3ed9c36d9c37221525928 100644
+--- a/src/main/java/org/bukkit/event/inventory/InventoryMoveItemEvent.java
++++ b/src/main/java/org/bukkit/event/inventory/InventoryMoveItemEvent.java
+@@ -58,7 +58,7 @@ public class InventoryMoveItemEvent extends Event implements Cancellable {
+ */
+ @NotNull
+ public ItemStack getItem() {
+- return itemStack.clone();
++ return itemStack; // Paper - Removed clone, handled better in Server
+ }
+
+ /**