mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 12:59:44 +00:00
Fix deprecation warnings from Forge
This commit is contained in:
1 parent
1601136304
commit
10678d6469
3 files changed
+5
-5
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user