Merge pull request #670 from Voxelstice/oc-stuff

a fix of a bug and one more function to the oc compat thingy
This commit is contained in:
HbmMods 2022-07-09 21:27:33 +02:00 committed by GitHub
commit f90815897e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -554,6 +554,12 @@ public class TileEntityReactorZirnox extends TileEntityMachineBase implements IF
public Object[] getWater(Context context, Arguments args) {
return new Object[] {water.getFill()};
}
@Callback
@Optional.Method(modid = "OpenComputers")
public Object[] getSteam(Context context, Arguments args) {
return new Object[] {steam.getFill()};
}
@Callback
@Optional.Method(modid = "OpenComputers")

View File

@ -354,9 +354,6 @@ public class TileEntityRBMKRod extends TileEntityRBMKSlottedBase implements IRBM
// do some opencomputer stuff
@Override
public String getComponentName() {
if(isModerated() == true) {
return "rbmk_moderated_fuel_rod";
}
return "rbmk_fuel_rod";
}