mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Fixed id mismatch in steam turbine OpenComputers integration
This commit is contained in:
parent
20b46c3884
commit
03c5466c0e
@ -38,16 +38,15 @@ public class CompatHandler {
|
|||||||
* @return Object[] array containing an int with the "compression level"
|
* @return Object[] array containing an int with the "compression level"
|
||||||
*/
|
*/
|
||||||
public static Object[] steamTypeToInt(FluidType type) {
|
public static Object[] steamTypeToInt(FluidType type) {
|
||||||
switch(type.getID()) {
|
final int typeId = type.getID();
|
||||||
case(4): // Fluids.HOTSTEAM
|
if(typeId == Fluids.HOTSTEAM.getID()) {
|
||||||
return new Object[] {1};
|
return new Object[]{1};
|
||||||
case(5): // Fluids.SUPERHOTSTEAM
|
} else if(typeId == Fluids.SUPERHOTSTEAM.getID()) {
|
||||||
return new Object[] {2};
|
return new Object[]{2};
|
||||||
case(6): // Fluids.ULTRAHOTSTEAM
|
} else if(typeId == Fluids.ULTRAHOTSTEAM.getID()) {
|
||||||
return new Object[] {3};
|
return new Object[]{3};
|
||||||
default:
|
}
|
||||||
return new Object[] {0};
|
return new Object[] {0};
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user