@@ -1,22 +1,22 @@
|
||||
--- a/net/minecraft/server/BlockMobSpawner.java
|
||||
+++ b/net/minecraft/server/BlockMobSpawner.java
|
||||
@@ -16,9 +16,19 @@
|
||||
|
||||
public void dropNaturally(IBlockData iblockdata, World world, BlockPosition blockposition, float f, int i) {
|
||||
super.dropNaturally(iblockdata, world, blockposition, f, i);
|
||||
@@ -14,9 +14,19 @@
|
||||
@Override
|
||||
public void dropNaturally(IBlockData iblockdata, World world, BlockPosition blockposition, ItemStack itemstack) {
|
||||
super.dropNaturally(iblockdata, world, blockposition, itemstack);
|
||||
+ /* CraftBukkit start - Delegate to getExpDrop
|
||||
int j = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
||||
int i = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
||||
|
||||
this.dropExperience(world, blockposition, j);
|
||||
this.dropExperience(world, blockposition, i);
|
||||
+ */
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public int getExpDrop(IBlockData iblockdata, World world, BlockPosition blockposition, int enchantmentLevel) {
|
||||
+ int j = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
||||
+ public int getExpDrop(IBlockData iblockdata, World world, BlockPosition blockposition, ItemStack itemstack) {
|
||||
+ int i = 15 + world.random.nextInt(15) + world.random.nextInt(15);
|
||||
+
|
||||
+ return j;
|
||||
+ return i;
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
||||
public EnumRenderType c(IBlockData iblockdata) {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user