mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
SPIGOT-3067: Wither skeleton heads not dropping
By: md_5 <git@md-5.net>
This commit is contained in:
parent
0a74e4d700
commit
6c52504f93
1 changed files with 19 additions and 0 deletions
19
paper-server/nms-patches/EntitySkeletonWither.patch
Normal file
19
paper-server/nms-patches/EntitySkeletonWither.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
--- a/net/minecraft/server/EntitySkeletonWither.java
|
||||||
|
+++ b/net/minecraft/server/EntitySkeletonWither.java
|
||||||
|
@@ -36,7 +36,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
public void die(DamageSource damagesource) {
|
||||||
|
- super.die(damagesource);
|
||||||
|
+ // super.die(damagesource); // CraftBukkit
|
||||||
|
if (damagesource.getEntity() instanceof EntityCreeper) {
|
||||||
|
EntityCreeper entitycreeper = (EntityCreeper) damagesource.getEntity();
|
||||||
|
|
||||||
|
@@ -45,6 +45,7 @@
|
||||||
|
this.a(new ItemStack(Items.SKULL, 1, 1), 0.0F);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
+ super.die(damagesource); // CraftBukkit - moved from above
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue