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

Commit

Permalink
Merge branch 'GTNewHorizons:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilzinsel64 authored Oct 15, 2023
2 parents b284f46 + 1af6fca commit e878c8e
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ protected boolean autoExtractForDir(ForgeDirection dir) {
boolean res;
if (mode == RedstoneControlMode.OFF) {
// if checking for no signal, must be no signal from both
res = mode.isConditionMet(mode, signal)
res = RedstoneControlMode.isConditionMet(mode, signal)
&& (col != DyeColor.RED || isConditionMetByExternalSignal(dir, mode, col));
} else {
// if checking for a signal, either is fine
res = mode.isConditionMet(mode, signal)
res = RedstoneControlMode.isConditionMet(mode, signal)
|| (col == DyeColor.RED && isConditionMetByExternalSignal(dir, mode, col));
}
return res;
Expand All @@ -185,7 +185,12 @@ private boolean isConditionMetByExternalSignal(ForgeDirection dir, RedstoneContr
}
}

return mode.isConditionMet(mode, externalSignal);
return RedstoneControlMode.isConditionMet(mode, externalSignal);
}

@Override
protected ConnectionMode getDefaultConnectionMode() {
return ConnectionMode.INPUT;
}

@Override
Expand Down

0 comments on commit e878c8e

Please sign in to comment.