fix shear drops for wolf and bogged

Fixes #10661
This commit is contained in:
Jake Potrebic
2024-05-04 22:48:06 -07:00
parent 7b2ce17e23
commit f51bdcf978
2 changed files with 19 additions and 1 deletions

View File

@@ -241,7 +241,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
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