aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0250-Allow-adding-items-to-BlockDropItemEvent.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0250-Allow-adding-items-to-BlockDropItemEvent.patch')
-rw-r--r--patches/api/0250-Allow-adding-items-to-BlockDropItemEvent.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/api/0250-Allow-adding-items-to-BlockDropItemEvent.patch b/patches/api/0250-Allow-adding-items-to-BlockDropItemEvent.patch
new file mode 100644
index 0000000000..c6b7565fe4
--- /dev/null
+++ b/patches/api/0250-Allow-adding-items-to-BlockDropItemEvent.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: BillyGalbreath <[email protected]>
+Date: Wed, 20 Jan 2021 14:25:26 -0600
+Subject: [PATCH] Allow adding items to BlockDropItemEvent
+
+
+diff --git a/src/main/java/org/bukkit/event/block/BlockDropItemEvent.java b/src/main/java/org/bukkit/event/block/BlockDropItemEvent.java
+index 7e21548cac8515c281ec86853e9272ab7695b24f..4c5ee91de162b202c2db8bf68259ad41a430125d 100644
+--- a/src/main/java/org/bukkit/event/block/BlockDropItemEvent.java
++++ b/src/main/java/org/bukkit/event/block/BlockDropItemEvent.java
+@@ -68,7 +68,7 @@ public class BlockDropItemEvent extends BlockEvent implements Cancellable {
+ * Gets list of the Item drops caused by the block break.
+ *
+ * This list is mutable - removing an item from it will cause it to not
+- * drop. It is not legal however to add new items to the list.
++ * drop. Adding to the list is allowed.
+ *
+ * @return The Item the block caused to drop
+ */