d28dd3edbd
Brought our multiple TNT change patches into a single patch and configuraiton section. You /will/ need to update your configs, sorry. Adds additional configuration and features as well.
28 Zeilen
950 B
Diff
28 Zeilen
950 B
Diff
From 9cd798fbfcb245029b35c8caad7b2754ba38f553 Mon Sep 17 00:00:00 2001
|
|
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
|
|
index fe198c9..6c85f3d 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityEnderman.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityEnderman.java
|
|
@@ -239,6 +239,13 @@ 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) {
|
|
--
|
|
1.9.5.msysgit.0
|
|
|