Skip to content

Commit

Permalink
Allow input hatch on multiblock compressors (#3368)
Browse files Browse the repository at this point in the history
  • Loading branch information
FourIsTheNumber authored Oct 13, 2024
1 parent 9e3258b commit 6c2b4eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public class MTEHIPCompressor extends MTEExtendedPowerMultiBlockBase<MTEHIPCompr
.addElement('F', ofCoil(MTEHIPCompressor::setCoilLevel, MTEHIPCompressor::getCoilLevel))
.addElement(
'G',
buildHatchAdder(MTEHIPCompressor.class).atLeast(InputBus, OutputBus)
buildHatchAdder(MTEHIPCompressor.class).atLeast(InputBus, OutputBus, InputHatch)
.casingIndex(((BlockCasings10) GregTechAPI.sBlockCasings10).getTextureIndex(5))
.dot(2)
.buildAndChain(onElementPass(MTEHIPCompressor::onCasingAdded, ofBlock(GregTechAPI.sBlockCasings10, 5))))
Expand Down Expand Up @@ -276,6 +276,7 @@ protected MultiblockTooltipBuilder createTooltip() {
.addCasingInfoExactly("Clean Stainless Steel Machine Casing", 20, false)
.addCasingInfoExactly("Coil", 30, true)
.addInputBus("Pipe Casings on Side", 2)
.addInputHatch("Pipe Casings on Side", 2)
.addOutputBus("Pipe Casings on Side", 2)
.addEnergyHatch("Any Electric Compressor Casing", 1)
.addMaintenanceHatch("Any Electric Compressor Casing", 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class MTEIndustrialCompressor extends MTEExtendedPowerMultiBlockBase<MTEI
//spotless:on
.addElement(
'C',
buildHatchAdder(MTEIndustrialCompressor.class).atLeast(InputBus, OutputBus)
buildHatchAdder(MTEIndustrialCompressor.class).atLeast(InputBus, OutputBus, InputHatch)
.casingIndex(((BlockCasings10) GregTechAPI.sBlockCasings10).getTextureIndex(5))
.dot(1)
.buildAndChain(
Expand Down Expand Up @@ -156,6 +156,7 @@ protected MultiblockTooltipBuilder createTooltip() {
.addCasingInfoMin("Compressor Pipe Casing", 45, false)
.addCasingInfoExactly("EV+ Glass", 6, false)
.addInputBus("Pipe Casings on Side", 2)
.addInputHatch("Pipe Casings on Side", 2)
.addOutputBus("Pipe Casings on Side", 2)
.addEnergyHatch("Any Electric Compressor Casing", 1)
.addMaintenanceHatch("Any Electric Compressor Casing", 1)
Expand Down

0 comments on commit 6c2b4eb

Please sign in to comment.