Updated to the latest Forge

This commit is contained in:
Adubbz 2015-01-11 16:58:41 +11:00
parent ae8a99b1ce
commit a53aa0395e
4 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ public class BOPPlant extends BOPBlock
public boolean canBlockStay(World world, BlockPos pos, IBlockState state)
{
Block ground = world.getBlockState(pos.down()).getBlock();
Block ground = world.getBlockState(pos.offsetDown()).getBlock();
return ground == Blocks.grass || ground == Blocks.dirt || ground == Blocks.farmland;
}

View File

@ -32,7 +32,7 @@ public class BlockBOPFlower2 extends BOPPlant
@Override
public boolean canBlockStay(World world, BlockPos pos, IBlockState state)
{
Block ground = world.getBlockState(pos.down()).getBlock();
Block ground = world.getBlockState(pos.offsetDown()).getBlock();
FlowerType type = (FlowerType)state.getValue(VARIANT_PROP);
switch (type)

View File

@ -45,7 +45,7 @@ public class BlockBOPMushroom extends BOPPlant
@Override
public boolean canBlockStay(World world, BlockPos pos, IBlockState state)
{
Block ground = world.getBlockState(pos.down()).getBlock();
Block ground = world.getBlockState(pos.offsetDown()).getBlock();
MushroomType type = (MushroomType)state.getValue(VARIANT_PROP);
switch (type)

View File

@ -32,7 +32,7 @@ public class BlockBamboo extends BOPPlant
@Override
public boolean canBlockStay(World world, BlockPos pos, IBlockState state)
{
Block ground = world.getBlockState(pos.down()).getBlock();
Block ground = world.getBlockState(pos.offsetDown()).getBlock();
return ground == Blocks.grass || ground == Blocks.dirt || ground == this;
}