2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/level/block/BlockMobSpawner.java
|
|
|
|
+++ b/net/minecraft/world/level/block/BlockMobSpawner.java
|
2023-12-05 17:40:00 +01:00
|
|
|
@@ -45,12 +45,20 @@
|
2019-04-23 04:00:00 +02:00
|
|
|
@Override
|
2024-04-23 17:15:00 +02:00
|
|
|
protected void spawnAfterBreak(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, ItemStack itemstack, boolean flag) {
|
2022-06-07 18:00:00 +02:00
|
|
|
super.spawnAfterBreak(iblockdata, worldserver, blockposition, itemstack, flag);
|
2021-11-21 23:00:00 +01:00
|
|
|
+ // CraftBukkit start - Delegate to getExpDrop
|
2014-11-25 22:32:16 +01:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
2022-06-07 18:00:00 +02:00
|
|
|
+ public int getExpDrop(IBlockData iblockdata, WorldServer worldserver, BlockPosition blockposition, ItemStack itemstack, boolean flag) {
|
|
|
|
if (flag) {
|
|
|
|
int i = 15 + worldserver.random.nextInt(15) + worldserver.random.nextInt(15);
|
2021-11-21 23:00:00 +01:00
|
|
|
|
2022-06-07 18:00:00 +02:00
|
|
|
- this.popExperience(worldserver, blockposition, i);
|
|
|
|
+ // this.popExperience(worldserver, blockposition, i);
|
|
|
|
+ return i;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ return 0;
|
2014-11-25 22:32:16 +01:00
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
@Override
|