2015-05-30 08:39:20 +02:00
|
|
|
From 8fd0f064dd0d98161766cbb06024907e6a1b5a4a Mon Sep 17 00:00:00 2001
|
2015-02-13 21:50:25 +01:00
|
|
|
From: Zach <zach.brown@destroystokyo.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
|
2015-05-30 08:11:16 +02:00
|
|
|
index a250062..f3afbbd 100644
|
2015-02-13 21:50:25 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityEnderman.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityEnderman.java
|
2015-03-08 02:16:09 +01:00
|
|
|
@@ -251,6 +251,13 @@ public class EntityEnderman extends EntityMonster {
|
2015-02-13 21:50:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // 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) {
|
|
|
|
--
|
2015-05-30 08:11:16 +02:00
|
|
|
2.4.1.windows.1
|
2015-02-13 21:50:25 +01:00
|
|
|
|