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) 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; return ground == Blocks.grass || ground == Blocks.dirt || ground == Blocks.farmland;
} }

View file

@ -32,7 +32,7 @@ public class BlockBOPFlower2 extends BOPPlant
@Override @Override
public boolean canBlockStay(World world, BlockPos pos, IBlockState state) 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); FlowerType type = (FlowerType)state.getValue(VARIANT_PROP);
switch (type) switch (type)

View file

@ -45,7 +45,7 @@ public class BlockBOPMushroom extends BOPPlant
@Override @Override
public boolean canBlockStay(World world, BlockPos pos, IBlockState state) 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); MushroomType type = (MushroomType)state.getValue(VARIANT_PROP);
switch (type) switch (type)

View file

@ -32,7 +32,7 @@ public class BlockBamboo extends BOPPlant
@Override @Override
public boolean canBlockStay(World world, BlockPos pos, IBlockState state) 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; return ground == Blocks.grass || ground == Blocks.dirt || ground == this;
} }