Fixed fence shouldn't be connecting with air blocks

This commit is contained in:
Unknown 2020-04-21 22:02:13 +02:00 committed by unknown
parent f539fd8773
commit a1bbfc9a21

View file

@ -13,6 +13,7 @@ import net.minecraft.block.Block;
import net.minecraft.block.material.EnumPushReaction;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyInteger;
import net.minecraft.block.state.BlockFaceShape;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
@ -94,6 +95,13 @@ public abstract class BlockAbstractAir extends BlockAbstractBase {
return false;
}
@SuppressWarnings("deprecation")
@Nonnull
@Override
public BlockFaceShape getBlockFaceShape(final IBlockAccess blockAccess, final IBlockState blockState, final BlockPos blockPos, final EnumFacing enumFacing) {
return BlockFaceShape.UNDEFINED;
}
@Override
@SideOnly(Side.CLIENT)
public void getSubBlocks(final CreativeTabs creativeTab, final NonNullList<ItemStack> list) {