enable controller and smart cables registration, even with channels off

This commit is contained in:
PrototypeTrousers
2022-04-12 17:39:20 -03:00
parent be9fb6d04c
commit c8698fc2bf
3 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ aebuild=7
aegroup=appeng aegroup=appeng
aebasename=appliedenergistics2 aebasename=appliedenergistics2
extended=extended_life extended=extended_life
extendedversion=v51k extendedversion=v0.52.1
######################################################### #########################################################
# Versions # # Versions #
######################################################### #########################################################
@@ -397,7 +397,6 @@ public final class ApiBlocks implements IBlocks
.tileEntity( new TileEntityDefinition( TileSpatialIOPort.class ) ) .tileEntity( new TileEntityDefinition( TileSpatialIOPort.class ) )
.build(); .build();
this.controller = registry.block( "controller", BlockController::new ) this.controller = registry.block( "controller", BlockController::new )
.features( AEFeature.CHANNELS )
.tileEntity( new TileEntityDefinition( TileController.class ) ) .tileEntity( new TileEntityDefinition( TileController.class ) )
.useCustomItemModel() .useCustomItemModel()
.rendering( new ControllerRendering() ) .rendering( new ControllerRendering() )
@@ -635,7 +634,7 @@ public final class ApiBlocks implements IBlocks
} ) } )
.build(); .build();
Verify.verify(stairs.maybeBlock().isPresent()); Verify.verify( stairs.maybeBlock().isPresent() );
return stairs; return stairs;
} }
@@ -105,7 +105,7 @@ public enum PartType
} }
}, },
CABLE_SMART( 40, "cable_smart", EnumSet.of( AEFeature.CHANNELS, AEFeature.SMART_CABLES ), EnumSet.noneOf( IntegrationType.class ), PartCableSmart.class ) CABLE_SMART( 40, "cable_smart", EnumSet.of( AEFeature.SMART_CABLES ), EnumSet.noneOf( IntegrationType.class ), PartCableSmart.class )
{ {
@Override @Override
public boolean isCable() public boolean isCable()
@@ -121,7 +121,7 @@ public enum PartType
} }
}, },
CABLE_DENSE_SMART( 60, "cable_dense_smart", EnumSet.of( AEFeature.CHANNELS, AEFeature.DENSE_CABLES ), EnumSet.noneOf( IntegrationType.class ), PartDenseCableSmart.class ) CABLE_DENSE_SMART( 60, "cable_dense_smart", EnumSet.of( AEFeature.DENSE_CABLES ), EnumSet.noneOf( IntegrationType.class ), PartDenseCableSmart.class )
{ {
@Override @Override
public boolean isCable() public boolean isCable()
@@ -137,7 +137,7 @@ public enum PartType
} }
}, },
CABLE_DENSE_COVERED( 500, "cable_dense_covered", EnumSet.of( AEFeature.CHANNELS, AEFeature.DENSE_CABLES ), EnumSet.noneOf( IntegrationType.class ), PartDenseCableCovered.class ) CABLE_DENSE_COVERED( 500, "cable_dense_covered", EnumSet.of( AEFeature.DENSE_CABLES ), EnumSet.noneOf( IntegrationType.class ), PartDenseCableCovered.class )
{ {
@Override @Override
public boolean isCable() public boolean isCable()