2022-06-08 02:00:00 +10:00
|
|
|
--- a/net/minecraft/world/level/block/SculkCatalystBlock.java
|
|
|
|
+++ b/net/minecraft/world/level/block/SculkCatalystBlock.java
|
2023-12-06 03:40:00 +11:00
|
|
|
@@ -68,9 +68,16 @@
|
2022-06-08 02:00:00 +10:00
|
|
|
@Override
|
2024-04-24 01:15:00 +10:00
|
|
|
protected void spawnAfterBreak(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, ItemStack itemstack, boolean flag) {
|
2022-06-08 02:00:00 +10:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|