2014-11-29 00:02:15 +01:00
|
|
|
--- ../work/decompile-8eb82bde//net/minecraft/server/BlockMobSpawner.java 2014-11-28 17:43:42.921707439 +0000
|
|
|
|
+++ src/main/java/net/minecraft/server/BlockMobSpawner.java 2014-11-28 17:38:22.000000000 +0000
|
2014-11-25 22:32:16 +01:00
|
|
|
@@ -22,9 +22,19 @@
|
|
|
|
|
|
|
|
public void dropNaturally(World world, BlockPosition blockposition, IBlockData iblockdata, float f, int i) {
|
|
|
|
super.dropNaturally(world, blockposition, iblockdata, f, i);
|
|
|
|
+ /* CraftBukkit start - Delegate to getExpDrop
|
|
|
|
int j = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
|
|
|
|
|
|
|
this.dropExperience(world, blockposition, j);
|
|
|
|
+ */
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public int getExpDrop(World world, IBlockData iblockdata, int enchantmentLevel) {
|
|
|
|
+ int j = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
|
|
|
+
|
|
|
|
+ return j;
|
|
|
|
+ // CraftBukkit end
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean c() {
|