From e42b8d1c0c625d4d91de4dec87958fe8b9c3d9ec Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Fri, 29 Mar 2019 00:44:06 -0400 Subject: [PATCH] Fix javadocs take 2: electric boogaloo --- .../0181-PlayerDeathEvent-getItemsToKeep.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Spigot-API-Patches/0181-PlayerDeathEvent-getItemsToKeep.patch b/Spigot-API-Patches/0181-PlayerDeathEvent-getItemsToKeep.patch index f64703cfeb..0764c7542f 100644 --- a/Spigot-API-Patches/0181-PlayerDeathEvent-getItemsToKeep.patch +++ b/Spigot-API-Patches/0181-PlayerDeathEvent-getItemsToKeep.patch @@ -1,4 +1,4 @@ -From ef529fe9d2cdb0ba907c3c953e1f09b18492b244 Mon Sep 17 00:00:00 2001 +From 07838b78d9fd7f850bd8deec2d90a88f1b3d20a6 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 11 Mar 2013 20:04:34 -0400 Subject: [PATCH] PlayerDeathEvent#getItemsToKeep @@ -8,7 +8,7 @@ Exposes a mutable array on items a player should keep on death Example Usage: https://gist.github.com/aikar/5bb202de6057a051a950ce1f29feb0b4 diff --git a/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java b/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java -index 5b0ef1eb..c96815a4 100644 +index 5b0ef1eb..16f01550 100644 --- a/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java +++ b/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java @@ -18,6 +18,40 @@ public class PlayerDeathEvent extends EntityDeathEvent { @@ -23,7 +23,7 @@ index 5b0ef1eb..c96815a4 100644 + * + * You MUST remove the item from the .getDrops() collection too or it will duplicate! + *
{@code
-+     *    @literal @EventHandler(ignoreCancelled = true)
++     *    {@literal @EventHandler(ignoreCancelled = true)}
 +     *     public void onPlayerDeath(PlayerDeathEvent event) {
 +     *         for (Iterator iterator = event.getDrops().iterator(); iterator.hasNext(); ) {
 +     *             ItemStack drop = iterator.next();