1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-21 07:44:49 +00:00

Fix BlockFaceShape not being overridden for turtles and peripherals

This meant one could perform various illogical actions to
non-full-blocks, such as connecting fences and placing paitings.

We also modify the behaviour of isOpaqueCube and isFullCube for
peripherals, only returning false for the case of modems and cables.
This commit is contained in:
SquidDev
2017-09-18 08:20:54 +01:00
parent 1c8480a329
commit 01f5d006fc
5 changed files with 82 additions and 15 deletions

View File

@@ -13,6 +13,7 @@ import dan200.computercraft.shared.computer.core.ComputerFamily;
import dan200.computercraft.shared.util.DirectionUtil;
import net.minecraft.block.material.Material;
import net.minecraft.block.properties.PropertyDirection;
import net.minecraft.block.state.BlockFaceShape;
import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.EntityLivingBase;
@@ -75,6 +76,14 @@ public class BlockTurtle extends BlockComputerBase
return false;
}
@Nonnull
@Override
@Deprecated
public BlockFaceShape getBlockFaceShape( IBlockAccess world, IBlockState state, BlockPos pos, EnumFacing side )
{
return BlockFaceShape.UNDEFINED;
}
@Nonnull
@Override
protected BlockStateContainer createBlockState()