mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 20:52:34 +00:00
20 lines
746 B
Diff
20 lines
746 B
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockMobSpawner.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockMobSpawner.java
|
|
@@ -39,10 +39,14 @@
|
|
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
|
|
{
|
|
super.dropBlockAsItemWithChance(worldIn, pos, state, chance, fortune);
|
|
- int j = 15 + worldIn.rand.nextInt(15) + worldIn.rand.nextInt(15);
|
|
- this.dropXpOnBlockBreak(worldIn, pos, j);
|
|
}
|
|
|
|
+ @Override
|
|
+ public int getExpDrop(net.minecraft.world.IBlockAccess world, BlockPos pos, int fortune)
|
|
+ {
|
|
+ return 15 + RANDOM.nextInt(15) + RANDOM.nextInt(15);
|
|
+ }
|
|
+
|
|
public boolean isOpaqueCube()
|
|
{
|
|
return false;
|