File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/java/com/gregtechceu/gtceu/integration/jade/provider Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 44import com .gregtechceu .gtceu .api .GTValues ;
55import com .gregtechceu .gtceu .api .blockentity .MetaMachineBlockEntity ;
66import com .gregtechceu .gtceu .api .capability .GTCapabilityHelper ;
7+ import com .gregtechceu .gtceu .api .machine .SimpleGeneratorMachine ;
78import com .gregtechceu .gtceu .api .machine .SimpleTieredMachine ;
89import com .gregtechceu .gtceu .api .machine .multiblock .WorkableElectricMultiblockMachine ;
910import com .gregtechceu .gtceu .api .machine .steam .SimpleSteamMachine ;
@@ -65,6 +66,8 @@ public static long getVoltage(RecipeLogic capability) {
6566 long voltage = -1 ;
6667 if (capability .machine instanceof SimpleTieredMachine machine ) {
6768 voltage = GTValues .V [machine .getTier ()];
69+ } else if (capability .machine instanceof SimpleGeneratorMachine machine ) {
70+ voltage = GTValues .V [machine .getTier ()];
6871 } else if (capability .machine instanceof WorkableElectricMultiblockMachine machine ) {
6972 voltage = machine .getParts ().stream ()
7073 .filter (EnergyHatchPartMachine .class ::isInstance )
You can’t perform that action at this time.
0 commit comments