52 lines
2.0 KiB
Diff
52 lines
2.0 KiB
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockNetherWart.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockNetherWart.java
|
|
@@ -43,7 +43,7 @@
|
|
|
|
public boolean func_180671_f(World p_180671_1_, BlockPos p_180671_2_, IBlockState p_180671_3_)
|
|
{
|
|
- return this.func_185514_i(p_180671_1_.func_180495_p(p_180671_2_.func_177977_b()));
|
|
+ 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_)
|
|
@@ -59,9 +59,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 i = 1;
|
|
|
|
@@ -108,6 +110,26 @@
|
|
return ((Integer)p_176201_1_.func_177229_b(field_176486_a)).intValue();
|
|
}
|
|
|
|
+ @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;
|
|
+ }
|
|
+
|
|
protected BlockStateContainer func_180661_e()
|
|
{
|
|
return new BlockStateContainer(this, new IProperty[] {field_176486_a});
|