mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-08 06:26:43 +01:00
Fixed non-pegasi being able to mine regular cloud blocks, fixed cloud doors popping off of cloud blocks
This commit is contained in:
parent
6cc9172068
commit
59b1ba796e
1 changed files with 11 additions and 1 deletions
|
@ -74,6 +74,16 @@ public class BlockCloud extends Block implements ICloudBlock, ITillable {
|
||||||
return BlockRenderLayer.TRANSLUCENT;
|
return BlockRenderLayer.TRANSLUCENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
@Override
|
||||||
|
public boolean isSideSolid(IBlockState base_state, IBlockAccess world, BlockPos pos, EnumFacing side) {
|
||||||
|
if (side == EnumFacing.UP && world.getBlockState(pos.up()).getBlock() instanceof ICloudBlock) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return super.isSideSolid(base_state, world, pos, side);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face) {
|
public boolean doesSideBlockRendering(IBlockState state, IBlockAccess world, BlockPos pos, EnumFacing face) {
|
||||||
|
|
||||||
|
@ -140,7 +150,7 @@ public class BlockCloud extends Block implements ICloudBlock, ITillable {
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@Override
|
@Override
|
||||||
public float getPlayerRelativeBlockHardness(IBlockState state, EntityPlayer player, World worldIn, BlockPos pos) {
|
public float getPlayerRelativeBlockHardness(IBlockState state, EntityPlayer player, World worldIn, BlockPos pos) {
|
||||||
if (!CloudType.NORMAL.canInteract(player)) {
|
if (CloudType.NORMAL.canInteract(player)) {
|
||||||
return super.getPlayerRelativeBlockHardness(state, player, worldIn, pos);
|
return super.getPlayerRelativeBlockHardness(state, player, worldIn, pos);
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue