From 48a803d3ec52af640cc59fc4ee944149a82678bc Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 9 Jan 2024 19:29:52 +1100 Subject: [PATCH] SPIGOT-7567: SpawnReason for SNOWMAN is reported as BUILD_IRONGOLEM By: md_5 --- .../net/minecraft/world/level/block/BlockPumpkinCarved.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/net/minecraft/world/level/block/BlockPumpkinCarved.patch b/paper-server/nms-patches/net/minecraft/world/level/block/BlockPumpkinCarved.patch index 00de2418d7..82f7a792e7 100644 --- a/paper-server/nms-patches/net/minecraft/world/level/block/BlockPumpkinCarved.patch +++ b/paper-server/nms-patches/net/minecraft/world/level/block/BlockPumpkinCarved.patch @@ -20,7 +20,7 @@ entity.moveTo((double) blockposition.getX() + 0.5D, (double) blockposition.getY() + 0.05D, (double) blockposition.getZ() + 0.5D, 0.0F, 0.0F); - world.addFreshEntity(entity); + // CraftBukkit start -+ if (!world.addFreshEntity(entity, SpawnReason.BUILD_IRONGOLEM)) { ++ if (!world.addFreshEntity(entity, (entity.getType() == EntityTypes.SNOW_GOLEM) ? SpawnReason.BUILD_SNOWMAN : SpawnReason.BUILD_IRONGOLEM)) { + return; + } + clearPatternBlocks(world, shapedetector_shapedetectorcollection); // CraftBukkit - from above