Updated to the latest Forge
This commit is contained in:
parent
ae8a99b1ce
commit
a53aa0395e
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue