whoops forgot to change the component name (also added the getFluid() function to the pipe gauge)

This commit is contained in:
BallOfEnergy 2023-08-08 14:14:32 -05:00
parent e02e28b5d0
commit 02e80da344

View File

@ -152,7 +152,7 @@ public class FluidDuctGauge extends FluidDuctBase implements IBlockMultiPass, IL
}
public String getComponentName() {
return "rbmk_boiler";
return "ntm_fluid_gauge";
}
@Callback(direct = true, limit = 8)
@ -161,10 +161,16 @@ public class FluidDuctGauge extends FluidDuctBase implements IBlockMultiPass, IL
return new Object[] {deltaTick, deltaSecond};
}
@Callback(direct = true, limit = 8)
@Optional.Method(modid = "OpenComputers")
public Object[] getFluid(Context context, Arguments args) {
return new Object[] {getType().getName()};
}
@Callback(direct = true, limit = 8)
@Optional.Method(modid = "OpenComputers")
public Object[] getInfo(Context context, Arguments args) {
return new Object[] {deltaTick, deltaSecond};
return new Object[] {deltaTick, deltaSecond, getType().getName(), xCoord, yCoord, zCoord};
}
}
}