diff options
Diffstat (limited to 'patches/server/0943-Add-drops-to-shear-events.patch')
-rw-r--r-- | patches/server/0943-Add-drops-to-shear-events.patch | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/patches/server/0943-Add-drops-to-shear-events.patch b/patches/server/0943-Add-drops-to-shear-events.patch index 40a0413a25..ad99ccecb4 100644 --- a/patches/server/0943-Add-drops-to-shear-events.patch +++ b/patches/server/0943-Add-drops-to-shear-events.patch @@ -233,22 +233,26 @@ index 2de1a2f666da9db1832907e1651dbff948e37252..5c2ed3c39c8eb850f3be1e2ea5b5a7ea } diff --git a/src/main/java/net/minecraft/world/entity/monster/Bogged.java b/src/main/java/net/minecraft/world/entity/monster/Bogged.java -index 9c0bfddd479eef688d2509ad700371c3c860ff1a..754eb747179d9318bc5a3883e5622cc400c4e06c 100644 +index 9c0bfddd479eef688d2509ad700371c3c860ff1a..e9f9b041ae7195e9d23bd446454b1d8c47a1ace1 100644 --- a/src/main/java/net/minecraft/world/entity/monster/Bogged.java +++ b/src/main/java/net/minecraft/world/entity/monster/Bogged.java -@@ -135,6 +135,11 @@ public class Bogged extends AbstractSkeleton implements Shearable { +@@ -135,6 +135,15 @@ public class Bogged extends AbstractSkeleton implements Shearable { } private void spawnShearedMushrooms() { + // Paper start - shear drops API -+ this.generateShearedMushrooms(this::spawnAtLocation); ++ this.generateShearedMushrooms(stack -> { ++ this.forceDrops = true; ++ this.spawnAtLocation(stack); ++ this.forceDrops = false; ++ }); + } + private void generateShearedMushrooms(java.util.function.Consumer<ItemStack> stackConsumer) { + // Paper end - shear drops API if (this.level() instanceof ServerLevel serverLevel && serverLevel.getGameRules().getBoolean(GameRules.RULE_DOMOBLOOT)) { LootTable lootTable = serverLevel.getServer().reloadableRegistries().getLootTable(BuiltInLootTables.BOGGED_SHEAR); LootParams lootParams = new LootParams.Builder(serverLevel) -@@ -143,11 +148,20 @@ public class Bogged extends AbstractSkeleton implements Shearable { +@@ -143,11 +152,20 @@ public class Bogged extends AbstractSkeleton implements Shearable { .create(LootContextParamSets.SHEARING); for (ItemStack itemStack : lootTable.getRandomItems(lootParams)) { |