From 9273a60cdbbc082a2c66fd9e0795a50038ab4780 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 22 Jul 2021 17:51:53 +1000 Subject: [PATCH] SPIGOT-6665: Shearing a Snowman does not drop a carved pumpkin By: md_5 --- .../minecraft/world/entity/animal/EntitySnowman.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/paper-server/nms-patches/net/minecraft/world/entity/animal/EntitySnowman.patch b/paper-server/nms-patches/net/minecraft/world/entity/animal/EntitySnowman.patch index 98d70e57f3..c3653dd448 100644 --- a/paper-server/nms-patches/net/minecraft/world/entity/animal/EntitySnowman.patch +++ b/paper-server/nms-patches/net/minecraft/world/entity/animal/EntitySnowman.patch @@ -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 + } + + }