2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/BlockMobSpawner.java
|
|
|
|
+++ b/net/minecraft/server/BlockMobSpawner.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -14,9 +14,19 @@
|
|
|
|
@Override
|
|
|
|
public void dropNaturally(IBlockData iblockdata, World world, BlockPosition blockposition, ItemStack itemstack) {
|
|
|
|
super.dropNaturally(iblockdata, world, blockposition, itemstack);
|
2014-11-25 22:32:16 +01:00
|
|
|
+ /* CraftBukkit start - Delegate to getExpDrop
|
2019-04-23 04:00:00 +02:00
|
|
|
int i = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
this.dropExperience(world, blockposition, i);
|
2014-11-25 22:32:16 +01:00
|
|
|
+ */
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
2019-04-23 04:00:00 +02:00
|
|
|
+ public int getExpDrop(IBlockData iblockdata, World world, BlockPosition blockposition, ItemStack itemstack) {
|
|
|
|
+ int i = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
2014-11-25 22:32:16 +01:00
|
|
|
+
|
2019-04-23 04:00:00 +02:00
|
|
|
+ return i;
|
2014-11-25 22:32:16 +01:00
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
@Override
|