mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-21 21:42:28 +00:00
Small changes to Boiler callback code following the change with OC and string returns.
This commit is contained in:
parent
d3907c72aa
commit
b9c2371848
@ -383,10 +383,10 @@ public class TileEntityRBMKBoiler extends TileEntityRBMKSlottedBase implements I
|
|||||||
@Optional.Method(modid = "OpenComputers")
|
@Optional.Method(modid = "OpenComputers")
|
||||||
public Object[] getSteamType(Context context, Arguments args) {
|
public Object[] getSteamType(Context context, Arguments args) {
|
||||||
FluidType type = steam.getTankType();
|
FluidType type = steam.getTankType();
|
||||||
if(type == Fluids.STEAM) {return new Object[] {"0"};}
|
if(type == Fluids.STEAM) {return new Object[] {0};}
|
||||||
else if(type == Fluids.HOTSTEAM) {return new Object[] {"1"};}
|
else if(type == Fluids.HOTSTEAM) {return new Object[] {1};}
|
||||||
else if(type == Fluids.SUPERHOTSTEAM) {return new Object[] {"2"};}
|
else if(type == Fluids.SUPERHOTSTEAM) {return new Object[] {2};}
|
||||||
else if(type == Fluids.ULTRAHOTSTEAM) {return new Object[] {"3"};}
|
else if(type == Fluids.ULTRAHOTSTEAM) {return new Object[] {3};}
|
||||||
else {return new Object[] {"Unknown Error"};}
|
else {return new Object[] {"Unknown Error"};}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -401,16 +401,16 @@ public class TileEntityRBMKBoiler extends TileEntityRBMKSlottedBase implements I
|
|||||||
}
|
}
|
||||||
if(type == 0) {
|
if(type == 0) {
|
||||||
steam.setTankType(Fluids.STEAM);
|
steam.setTankType(Fluids.STEAM);
|
||||||
return new Object[] {"true"};
|
return new Object[] {true};
|
||||||
} else if(type == 1) {
|
} else if(type == 1) {
|
||||||
steam.setTankType(Fluids.HOTSTEAM);
|
steam.setTankType(Fluids.HOTSTEAM);
|
||||||
return new Object[] {"true"};
|
return new Object[] {true};
|
||||||
} else if(type == 2) {
|
} else if(type == 2) {
|
||||||
steam.setTankType(Fluids.SUPERHOTSTEAM);
|
steam.setTankType(Fluids.SUPERHOTSTEAM);
|
||||||
return new Object[] {"true"};
|
return new Object[] {true};
|
||||||
} else {
|
} else {
|
||||||
steam.setTankType(Fluids.ULTRAHOTSTEAM);
|
steam.setTankType(Fluids.ULTRAHOTSTEAM);
|
||||||
return new Object[] {"true"};
|
return new Object[] {true};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user