50 lines
1.8 KiB
Diff
50 lines
1.8 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockNetherWart.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockNetherWart.java
|
|
@@ -36,7 +36,7 @@
|
|
|
|
public boolean func_180671_f(World p_180671_1_, BlockPos p_180671_2_, IBlockState p_180671_3_)
|
|
{
|
|
- return this.func_149854_a(p_180671_1_.func_180495_p(p_180671_2_.func_177977_b()).func_177230_c());
|
|
+ return super.func_180671_f(p_180671_1_, p_180671_2_, p_180671_3_);
|
|
}
|
|
|
|
public void func_180650_b(World p_180650_1_, BlockPos p_180650_2_, IBlockState p_180650_3_, Random p_180650_4_)
|
|
@@ -52,9 +52,11 @@
|
|
super.func_180650_b(p_180650_1_, p_180650_2_, p_180650_3_, p_180650_4_);
|
|
}
|
|
|
|
+ @SuppressWarnings("unused")
|
|
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_)
|
|
{
|
|
- if (!p_180653_1_.field_72995_K)
|
|
+ super.func_180653_a(p_180653_1_, p_180653_2_, p_180653_3_, p_180653_4_, p_180653_5_);
|
|
+ if (false && !p_180653_1_.field_72995_K)
|
|
{
|
|
int j = 1;
|
|
|
|
@@ -105,4 +107,24 @@
|
|
{
|
|
return new BlockState(this, new IProperty[] {field_176486_a});
|
|
}
|
|
+
|
|
+ @Override
|
|
+ public java.util.List<ItemStack> getDrops(net.minecraft.world.IBlockAccess world, BlockPos pos, IBlockState state, int fortune)
|
|
+ {
|
|
+ java.util.List<ItemStack> ret = new java.util.ArrayList<ItemStack>();
|
|
+ Random rand = world instanceof World ? ((World)world).field_73012_v : new Random();
|
|
+ int count = 1;
|
|
+
|
|
+ if (((Integer)state.func_177229_b(field_176486_a)) >= 3)
|
|
+ {
|
|
+ count = 2 + rand.nextInt(3) + (fortune > 0 ? rand.nextInt(fortune + 1) : 0);
|
|
+ }
|
|
+
|
|
+ for (int i = 0; i < count; i++)
|
|
+ {
|
|
+ ret.add(new ItemStack(Items.field_151075_bm));
|
|
+ }
|
|
+
|
|
+ return ret;
|
|
+ }
|
|
}
|