Fixed Cable not having a collision box
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
- Fixed new items inserted after crafting in Grid being laggy
|
||||
- Fixed flickering of items in Grid
|
||||
- Fixed getting a stack of unstackable items from Grid
|
||||
- Fixed Cable not having a collision box
|
||||
- Check if the Constructor can actually place said block in the world
|
||||
|
||||
**Features**
|
||||
|
@@ -9,11 +9,12 @@ import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.math.AxisAlignedBB;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import refinedstorage.tile.TileController;
|
||||
import refinedstorage.tile.TileMachine;
|
||||
|
||||
public class BlockCable extends BlockBase {
|
||||
public static final AxisAlignedBB CABLE_AABB = new AxisAlignedBB(4 * (1F / 16F), 4 * (1F / 16F), 4 * (1F / 16F), 1 - 4 * (1F / 16F), 1 - 4 * (1F / 16F), 1 - 4 * (1F / 16F));
|
||||
|
||||
public static final PropertyBool NORTH = PropertyBool.create("north");
|
||||
public static final PropertyBool EAST = PropertyBool.create("east");
|
||||
public static final PropertyBool SOUTH = PropertyBool.create("south");
|
||||
@@ -64,14 +65,7 @@ public class BlockCable extends BlockBase {
|
||||
|
||||
@Override
|
||||
public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||
float pixel = 1F / 16F;
|
||||
|
||||
return new AxisAlignedBB(4 * pixel, 4 * pixel, 4 * pixel, 1 - 4 * pixel, 1 - 4 * pixel, 1 - 4 * pixel);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AxisAlignedBB getCollisionBoundingBox(IBlockState state, World world, BlockPos pos) {
|
||||
return getBoundingBox(state, world, pos);
|
||||
return CABLE_AABB;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user