mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 02:35:49 +01:00
SPIGOT-6665: Shearing a Snowman does not drop a carved pumpkin
By: md_5 <git@md-5.net>
This commit is contained in:
parent
93f615157d
commit
9273a60cdb
1 changed files with 10 additions and 0 deletions
|
@ -41,3 +41,13 @@
|
|||
this.shear(SoundCategory.PLAYERS);
|
||||
this.a(GameEvent.SHEAR, (Entity) entityhuman);
|
||||
if (!this.level.isClientSide) {
|
||||
@@ -166,7 +175,9 @@
|
||||
this.level.playSound((EntityHuman) null, (Entity) this, SoundEffects.SNOW_GOLEM_SHEAR, soundcategory, 1.0F, 1.0F);
|
||||
if (!this.level.isClientSide()) {
|
||||
this.setHasPumpkin(false);
|
||||
+ this.forceDrops = true; // CraftBukkit
|
||||
this.a(new ItemStack(Items.CARVED_PUMPKIN), 1.7F);
|
||||
+ this.forceDrops = false; // CraftBukkit
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue