From f0f2754d8a43002cd0c10ac5cfa1a63dff77bba4 Mon Sep 17 00:00:00 2001 From: Zach Brown <1254957+zachbr@users.noreply.github.com> Date: Fri, 13 Feb 2015 14:50:25 -0600 Subject: [PATCH] Make Enderman drop the block they're holding when they die --- ...e-block-they-re-holding-when-they-di.patch | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Spigot-Server-Patches/Enderman-drop-the-block-they-re-holding-when-they-di.patch diff --git a/Spigot-Server-Patches/Enderman-drop-the-block-they-re-holding-when-they-di.patch b/Spigot-Server-Patches/Enderman-drop-the-block-they-re-holding-when-they-di.patch new file mode 100644 index 000000000..f3e243bab --- /dev/null +++ b/Spigot-Server-Patches/Enderman-drop-the-block-they-re-holding-when-they-di.patch @@ -0,0 +1,25 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Zach Brown <1254957+zachbr@users.noreply.github.com> +Date: Fri, 13 Feb 2015 14:49:30 -0600 +Subject: [PATCH] Enderman drop the block they're holding when they die + + +diff --git a/src/main/java/net/minecraft/server/EntityEnderman.java b/src/main/java/net/minecraft/server/EntityEnderman.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/server/EntityEnderman.java ++++ b/src/main/java/net/minecraft/server/EntityEnderman.java +@@ -0,0 +0,0 @@ public class EntityEnderman extends EntityMonster { + } + } + ++ // PaperSpigot start - Drop the block the entity is holding when it dies ++ Item carriedItem = Item.getItemOf(getCarried().getBlock()); ++ if (carriedItem != null) { ++ this.a(carriedItem, 1); ++ } ++ // PaperSpigot end ++ + } + + public void setCarried(IBlockData iblockdata) { +-- \ No newline at end of file