if (result.resultStack != null)
{
this.targetEmpty = false;
EnumCargoLoadingState state = this.addCargo(result.resultStack, false);
this.targetEmpty = state == EnumCargoLoadingState.EMPTY;
if (this.ticks % 15 == 0 && state == EnumCargoLoadingState.SUCCESS && !this.disabled && this.hasEnoughEnergyToRun)
{