fixes placement and voxelshapes of machines

This commit is contained in:
2026-03-11 23:04:11 -04:00
parent 7f41fdf864
commit 039cfce04b
9 changed files with 10 additions and 10 deletions
@@ -59,7 +59,7 @@ public class DNAAnalyzerBlock extends BaseEntityBlock {
);
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 90);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
@@ -94,7 +94,7 @@ public class DNAAnalyzerBlock extends BaseEntityBlock {
@Override
public @Nullable BlockState getStateForPlacement(BlockPlaceContext context) {
return this.defaultBlockState().setValue(FACING, context.getHorizontalDirection().getOpposite()).setValue(LIT, false);
return this.defaultBlockState().setValue(FACING, context.getHorizontalDirection().getOpposite().getOpposite()).setValue(LIT, false);
}
@Override
@@ -59,7 +59,7 @@ public class DNAExtractorBlock extends BaseEntityBlock {
);
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 90);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
@@ -58,7 +58,7 @@ public class DNAHybridizerBlock extends BaseEntityBlock {
);
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 90);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
@@ -59,7 +59,7 @@ public class EmbryoCalcificationMachineBlock extends BaseEntityBlock {
);
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 90);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
@@ -59,7 +59,7 @@ public class EmbryonicMachineBlock extends BaseEntityBlock {
);
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 90);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
@@ -60,7 +60,7 @@ public class FossilCleanerBlock extends BaseEntityBlock {
);
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, -90);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
@@ -59,7 +59,7 @@ public class FossilGrinderBlock extends BaseEntityBlock {
);
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, -90);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
@@ -58,7 +58,7 @@ public class GeneratorBlock extends BaseEntityBlock {
);
private static final VoxelShape SHAPE_SOUTH = rotateShapeY(SHAPE_NORTH, 180);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 90);
private static final VoxelShape SHAPE_WEST = rotateShapeY(SHAPE_NORTH, 270);
private static final VoxelShape SHAPE_EAST = rotateShapeY(SHAPE_NORTH, 90);
private static VoxelShape rotateShapeY(VoxelShape shape, int degrees) {
@@ -74,7 +74,7 @@ public class IncubatorBlock extends BaseEntityBlock {
@Override
public @Nullable BlockState getStateForPlacement(BlockPlaceContext context) {
return this.defaultBlockState().setValue(FACING, context.getHorizontalDirection().getOpposite()).setValue(LIT, false);
return this.defaultBlockState().setValue(FACING, context.getHorizontalDirection().getOpposite().getOpposite()).setValue(LIT, false);
}
@Override