2022-06-07 18:00:00 +02:00
|
|
|
--- a/net/minecraft/world/level/block/SculkCatalystBlock.java
|
|
|
|
+++ b/net/minecraft/world/level/block/SculkCatalystBlock.java
|
2023-12-05 17:40:00 +01:00
|
|
|
@@ -68,9 +68,16 @@
|
2022-06-07 18:00:00 +02:00
|
|
|
@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, this.xpRange);
|
|
|
|
+ return this.tryDropExperience(worldserver, blockposition, itemstack, this.xpRange);
|
|
|
|
}
|
|
|
|
|
|
|
|
+ return 0;
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
|
|
|
}
|