Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Jan 9, 2025
1 parent daf83c9 commit 4dad110
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,12 @@ protected void addErrorText(List<ITextComponent> textList) {
@Override
protected MultiblockUIFactory createUIFactory() {
MultiblockFuelRecipeLogic recipeLogic = (MultiblockFuelRecipeLogic) recipeMapWorkable;
boolean noRotor = getRotorHolder() == null;
IntSyncValue efficiency = new IntSyncValue(
() -> noRotor ? 0 : getRotorHolder().getRotorEfficiency(), null);
() -> getRotorHolder() == null ? 0 : getRotorHolder().getRotorEfficiency(), null);
IntSyncValue total = new IntSyncValue(
() -> noRotor ? 0 : getRotorHolder().getTotalEfficiency(), null);
() -> getRotorHolder() == null ? 0 : getRotorHolder().getTotalEfficiency(), null);
IntSyncValue durability = new IntSyncValue(
() -> noRotor ? 0 : getRotorHolder().getRotorDurabilityPercent(), null);
() -> getRotorHolder() == null ? 0 : getRotorHolder().getRotorDurabilityPercent(), null);
BooleanSyncValue rotorFree = new BooleanSyncValue(
this::isRotorFaceFree, null);
StringSyncValue fuelAmount = new StringSyncValue(recipeLogic::getRecipeFluidInputInfo, null);
Expand Down

0 comments on commit 4dad110

Please sign in to comment.