Add model for external storage
This commit is contained in:
@@ -64,6 +64,7 @@ public class BlockCable extends BlockNode {
|
||||
TileEntity tile = world.getTileEntity(pos);
|
||||
|
||||
if (tile instanceof INetworkMaster || tile instanceof INetworkNode) {
|
||||
// Do not render a cable extension to on this position when we have a direction (like an exporter, importer or external storage)
|
||||
if (getPlacementType() != null) {
|
||||
return ((TileBase) world.getTileEntity(basePos)).getFacingTile() != tile;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import refinedstorage.tile.externalstorage.TileExternalStorage;
|
||||
|
||||
public class BlockExternalStorage extends BlockNode {
|
||||
public class BlockExternalStorage extends BlockCable {
|
||||
public BlockExternalStorage() {
|
||||
super("external_storage");
|
||||
}
|
||||
|
||||
@@ -294,20 +294,20 @@ public class CommonProxy {
|
||||
'H', new ItemStack(Blocks.CHEST),
|
||||
'C', new ItemStack(RefinedStorageItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||
'D', new ItemStack(RefinedStorageItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||
'M', new ItemStack(RefinedStorageBlocks.MACHINE_CASING),
|
||||
'M', new ItemStack(RefinedStorageBlocks.CABLE),
|
||||
'P', new ItemStack(RefinedStorageItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
||||
);
|
||||
|
||||
// Importer
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(RefinedStorageBlocks.IMPORTER),
|
||||
new ItemStack(RefinedStorageBlocks.MACHINE_CASING),
|
||||
new ItemStack(RefinedStorageBlocks.CABLE),
|
||||
new ItemStack(RefinedStorageItems.CORE, 1, ItemCore.TYPE_CONSTRUCTION),
|
||||
new ItemStack(RefinedStorageItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
||||
);
|
||||
|
||||
// Exporter
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(RefinedStorageBlocks.EXPORTER),
|
||||
new ItemStack(RefinedStorageBlocks.MACHINE_CASING),
|
||||
new ItemStack(RefinedStorageBlocks.CABLE),
|
||||
new ItemStack(RefinedStorageItems.CORE, 1, ItemCore.TYPE_DESTRUCTION),
|
||||
new ItemStack(RefinedStorageItems.PROCESSOR, 1, ItemProcessor.TYPE_IMPROVED)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user