mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
22 lines
919 B
Diff
22 lines
919 B
Diff
|
--- a/net/minecraft/world/level/block/SculkShriekerBlock.java
|
||
|
+++ b/net/minecraft/world/level/block/SculkShriekerBlock.java
|
||
|
@@ -140,10 +140,17 @@
|
||
|
@Override
|
||
|
public void spawnAfterBreak(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, ItemStack itemstack, boolean flag) {
|
||
|
super.spawnAfterBreak(iblockdata, worldserver, blockposition, itemstack, flag);
|
||
|
+ // CraftBukkit start - Delegate to getExpDrop
|
||
|
+ }
|
||
|
+
|
||
|
+ @Override
|
||
|
+ public int getExpDrop(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, ItemStack itemstack, boolean flag) {
|
||
|
if (flag) {
|
||
|
- this.tryDropExperience(worldserver, blockposition, itemstack, ConstantInt.of(5));
|
||
|
+ return this.tryDropExperience(worldserver, blockposition, itemstack, ConstantInt.of(5));
|
||
|
}
|
||
|
|
||
|
+ return 0;
|
||
|
+ // CraftBukkit end
|
||
|
}
|
||
|
|
||
|
@Nullable
|