51 lines
2.1 KiB
Diff
51 lines
2.1 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockOre.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockOre.java
|
|
@@ -59,34 +59,39 @@
|
|
public void func_180653_a(World p_180653_1_, BlockPos p_180653_2_, IBlockState p_180653_3_, float p_180653_4_, int p_180653_5_)
|
|
{
|
|
super.func_180653_a(p_180653_1_, p_180653_2_, p_180653_3_, p_180653_4_, p_180653_5_);
|
|
-
|
|
- if (this.func_180660_a(p_180653_3_, p_180653_1_.field_73012_v, p_180653_5_) != Item.func_150898_a(this))
|
|
+ }
|
|
+ @Override
|
|
+ public int getExpDrop(IBlockState state, net.minecraft.world.IBlockAccess world, BlockPos pos, int fortune)
|
|
+ {
|
|
+ Random rand = world instanceof World ? ((World)world).field_73012_v : new Random();
|
|
+ if (this.func_180660_a(state, rand, fortune) != Item.func_150898_a(this))
|
|
{
|
|
int i = 0;
|
|
|
|
if (this == Blocks.field_150365_q)
|
|
{
|
|
- i = MathHelper.func_76136_a(p_180653_1_.field_73012_v, 0, 2);
|
|
+ i = MathHelper.func_76136_a(rand, 0, 2);
|
|
}
|
|
else if (this == Blocks.field_150482_ag)
|
|
{
|
|
- i = MathHelper.func_76136_a(p_180653_1_.field_73012_v, 3, 7);
|
|
+ i = MathHelper.func_76136_a(rand, 3, 7);
|
|
}
|
|
else if (this == Blocks.field_150412_bA)
|
|
{
|
|
- i = MathHelper.func_76136_a(p_180653_1_.field_73012_v, 3, 7);
|
|
+ i = MathHelper.func_76136_a(rand, 3, 7);
|
|
}
|
|
else if (this == Blocks.field_150369_x)
|
|
{
|
|
- i = MathHelper.func_76136_a(p_180653_1_.field_73012_v, 2, 5);
|
|
+ i = MathHelper.func_76136_a(rand, 2, 5);
|
|
}
|
|
else if (this == Blocks.field_150449_bY)
|
|
{
|
|
- i = MathHelper.func_76136_a(p_180653_1_.field_73012_v, 2, 5);
|
|
+ i = MathHelper.func_76136_a(rand, 2, 5);
|
|
}
|
|
|
|
- this.func_180637_b(p_180653_1_, p_180653_2_, i);
|
|
+ return i;
|
|
}
|
|
+ return 0;
|
|
}
|
|
|
|
public ItemStack func_185473_a(World p_185473_1_, BlockPos p_185473_2_, IBlockState p_185473_3_)
|