Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
fix ofBlocksTiered notSet misuse (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
Glease authored Oct 18, 2023
1 parent aca0387 commit b5cfc6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ public int survivalConstruct(ItemStack stackSize, int elementBudget, IItemSource
'A',
ofBlocksTiered(
(block, meta) -> block == TT_Container_Casings.SpacetimeCompressionFieldGenerators ? meta
: -1,
: null,
ImmutableList.of(
Pair.of(TT_Container_Casings.SpacetimeCompressionFieldGenerators, 0),
Pair.of(TT_Container_Casings.SpacetimeCompressionFieldGenerators, 1),
Expand All @@ -699,7 +699,7 @@ public int survivalConstruct(ItemStack stackSize, int elementBudget, IItemSource
.addElement(
'S',
ofBlocksTiered(
(block, meta) -> block == TT_Container_Casings.StabilisationFieldGenerators ? meta : -1,
(block, meta) -> block == TT_Container_Casings.StabilisationFieldGenerators ? meta : null,
ImmutableList.of(
Pair.of(TT_Container_Casings.StabilisationFieldGenerators, 0),
Pair.of(TT_Container_Casings.StabilisationFieldGenerators, 1),
Expand All @@ -722,7 +722,7 @@ public int survivalConstruct(ItemStack stackSize, int elementBudget, IItemSource
.addElement(
'E',
ofBlocksTiered(
(block, meta) -> block == TT_Container_Casings.TimeAccelerationFieldGenerator ? meta : -1,
(block, meta) -> block == TT_Container_Casings.TimeAccelerationFieldGenerator ? meta : null,
ImmutableList.of(
Pair.of(TT_Container_Casings.TimeAccelerationFieldGenerator, 0),
Pair.of(TT_Container_Casings.TimeAccelerationFieldGenerator, 1),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ public class GT_MetaTileEntity_TM_teslaCoil extends GT_MetaTileEntity_Multiblock
.addElement(
'D',
ofBlocksTiered(
(block, meta) -> block != sBlockCasingsBA0 ? -1 : meta <= 5 ? meta : meta == 9 ? 6 : -1,
(block, meta) -> block != sBlockCasingsBA0 ? null
: meta <= 5 ? Integer.valueOf(meta) : meta == 9 ? 6 : null,
IntStream.range(0, 7).map(tier -> tier == 6 ? 9 : tier)
.mapToObj(meta -> Pair.of(sBlockCasingsBA0, meta)).collect(Collectors.toList()),
-1,
Expand Down

0 comments on commit b5cfc6c

Please sign in to comment.