mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 08:00:02 +03:00
20 lines
782 B
Diff
20 lines
782 B
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockMobSpawner.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockMobSpawner.java
|
|
@@ -40,10 +40,14 @@
|
|
public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune)
|
|
{
|
|
super.dropBlockAsItemWithChance(worldIn, pos, state, chance, fortune);
|
|
- int i = 15 + worldIn.rand.nextInt(15) + worldIn.rand.nextInt(15);
|
|
- this.dropXpOnBlockBreak(worldIn, pos, i);
|
|
}
|
|
|
|
+ @Override
|
|
+ public int getExpDrop(IBlockState state, net.minecraft.world.IBlockAccess world, BlockPos pos, int fortune)
|
|
+ {
|
|
+ return 15 + RANDOM.nextInt(15) + RANDOM.nextInt(15);
|
|
+ }
|
|
+
|
|
public boolean isOpaqueCube(IBlockState state)
|
|
{
|
|
return false;
|