Fix deprecation warnings from Forge

This commit is contained in:
mezz committed 2015-01-15 22:50:33 -08:00
1 parent 1601136304
commit 10678d6469
3 files changed
+5 -5

No files matched your search

@@ -107,8 +107,8 @@ public class BlockArbStairs extends BlockStairs {
}
@Override
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) {
ItemStack itemStack = super.getPickBlock(target, world, x, y, z);
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z, EntityPlayer player) {
ItemStack itemStack = super.getPickBlock(target, world, x, y, z, player);
NBTTagCompound stairsNBT = getTagCompoundForStairs(world, x, y, z);
itemStack.setTagCompound(stairsNBT);
return itemStack;
@@ -145,7 +145,7 @@ public class BlockSapling extends BlockTreeContainer {
}
@Override
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) {
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z, EntityPlayer player) {
TileSapling sapling = getSaplingTile(world, x, y, z);
if (sapling == null || sapling.getTree() == null)
return null;
@@ -61,10 +61,10 @@ public class BlockFarm extends BlockStructure {
}
@Override
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z) {
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z, EntityPlayer player) {
ArrayList<ItemStack> drops = getDrops(world, x, y, z, 0, 0);
if (drops.isEmpty())
return super.getPickBlock(target, world, x, y, z);
return super.getPickBlock(target, world, x, y, z, player);
return drops.get(0);
}